[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel Extensions and Device Support Programming Concepts

LVM Subcommands for the KDB Kernel Debugger and kdb Command


pbuf Subcommand

The pbuf subcommand prints physical buffer information.

Example

(0)> pbuf 0ACA4500
PBUF............. 0ACA4500
pb@............. 0ACA4500 pb_lbuf........ 0A5B8318
pb_sched........ 01B64880 pb_pvol........ 05770000
pb_bad.......... 00000000 pb_start....... 00133460
pb_mirror....... 00000000 pb_miravoid.... 00000000
pb_mirbad....... 00000000 pb_mirdone..... 00000000
pb_swretry...... 00000000 pb_type........ 00000000
pb_bbfixtype.... 00000000 pb_bbop........ 00000000
pb_bbstat....... 00000000 pb_whl_stop.... 00000000
pb_part......... 00000000 pb_bbcount..... 00000000
pb_forw......... 0ACA45A0 pb_back........ 0ACA4460
stripe_next..... 0ACA4500 stripe_status.. 00000000
orig_addr....... 0C149000 orig_count..... 00001000
partial_stripe.. 00000000 first_issued... 00000001
orig_bflags..... 000C0000

(0)> buf 0A5B8318
                  DEV    VNODE    BLKNO FLAGS

  0 0A5B8318 000A000B 00000000 0007A360 DONE MPSAFE MPSAFE_INITIAL

forw     0000C4C1 back     00000000 av_forw  0A5B98C0 av_back  00000000
blkno    0007A360 addr     0C149000 bcount   00001000 resid    00000000
error    00000000 work     00080000 options  00000000 event    00000000
iodone:  v_pfend+000000
start.tv_sec       00000000 start.tv_nsec      00000000
xmemd.aspace_id    00000000 xmemd.xm_flag      00000000 xmemd.xm_version   00000000
xmemd.subspace_id  0080CC5B xmemd.subspace_id2 00000000 xmemd.uaddr        00000000

(0)> pbuf * 0ACA4500
  PBUF@    LBUF@    PVOL@      DEV    START   STRIPE   OR_ADDR OR_COUNT

0ACA4500 0A5B8318 05770000 00120006 00133460 0ACA4500 0C149000 00001000
0ACA45A0 0AA64898 0A7DB000 00120000 001C71F0 0ACA45A0 0003E000 00001000
0ACA4640 0A323D10 05766000 00120004 00082FC0 0ACA4640 0A997000 00001000
0ACA46E0 0A5B97B8 05770000 00120006 001338C8 0AC95320 0C15C000 00001000
0ACB9400 0AA62630 0A7DB000 00120000 001851A0 0ACB9400 00054000 00001000
0ACB94A0 0AA65398 0A7BC000 00120001 001AD750 0ACB94A0 083E9000 00001000
0ACB9540 0AA62DC0 0A7DB000 00120000 00181150 0ACB9540 00000000 00002000
0ACA0000 0AA6CA20 0A7BC000 00120001 000F72BC 0ACA0000 00000000 00000800
0ACCD800 0AA64478 0A7DB000 00120000 001C7260 0ACCD800 00000000 00001000
0ACCD8A0 0A5B86E0 05770000 00120006 00133BA8 0ACCD8A0 0B796000 00002000
0ACCD940 0A31F210 05766000 00120004 0013B100 0ACCD940 00840000 00002000
0ACCD9E0 0AA6ADE8 0A7BC000 00120001 0006925C 0ACCD9E0 00000000 00000800
0ACCDA80 0AA6C028 0A7BC000 00120001 000DA29C 0ACCDA80 003FF000 00000800
0ACCDB20 0A324DE8 05766000 00120004 0008ACE8 0ACCDB20 0C151000 00001000
0ACCDBC0 0AA638C0 0A7DB000 00120000 00186228 0ACCDBC0 00000000 00001000
...

volgrp Subcommand

The volgrp subcommand prints volume groupe information. volgrp addresses are registered in the devsw table, in DSDPTR field.

Example

(0)>  devsw 0a

Slot address 0571E280
MAJ#00A  OPEN            CLOSE           READ            WRITE
         01B44DE4        01B44470        01B43CD0        01B43C04
         IOCTL           STRATEGY        TTY             SELECT
         01B42B18        .hd_strategy    00000000        .nodev
         CONFIG          PRINT           DUMP            MPX
         01B413A0        .nodev          .hd_dump        .nodev
         REVOKE          DSDPTR          SELPTR          OPTS
         .nodev          05762000        00000000        0000000A
(0)> volgrp 05762000
VOLGRP............. 05762000
vg_lock.................. FFFFFFFF partshift............... 0000000D
open_count............... 00000013 flags................... 00000000
tot_io_cnt............... 00000000 lvols@.................. 05762010
pvols@................... 05762410 major_num............... 0000000A
vg_id.................... 00920045 005BDB00 00000000 00000000
nextvg................... 00000000 opn_pin@................ 057624A8
von_pid.................. 00000E78 nxtactvg................ 00000000
ca_freepvw............... 00000000 ca_pvwmem............... 00000000
ca_hld@.................. 057624D8 ca_pv_wrt@.............. 057624E0
ca_inflt_cnt............. 00000000 ca_size................. 00000000
ca_pvwblked.............. 00000000 mwc_rec................. 00000000
ca_part2................. 00000000 ca_lst.................. 00000000
ca_hash@................. 057624F4 bcachwait............... FFFFFFFF
ecachwait................ FFFFFFFF wait_cnt................ 00000000
quorum_cnt............... 00000002 wheel_idx............... 00000000
whl_seq_num.............. 00000000 sa_act_lst.............. 00000000
sa_hld_lst............... 00000000 vgsa_ptr................ 05776000
config_wait.............. FFFFFFFF sa_lbuf@................ 05762534
sa_pbuf@................. 0576258C sa_intlock@............. 0576262C
sa_intlock............... E8003B80
conc_flags............... 00000000 conc_msglock............ 00000000
vgsa_ts_prev.tv_sec...... 00000000 vgsa_ts_prev.tv_nsec.... 00000000
vgsa_ts_merged.tv_sec.... 00000000 vgsa_ts_merged.tv_nsec.. 00000000
vgsa_spare_ptr........... 00000000 intr_notify............. 00000000
intr_ok.................. 00000000 intr_tries.............. 00000000
resv_tries............... 00000000 sa_updated.............. 00000000
re_lbuf@................. 05762660 re_pbuf@................ 057626B8
re_idx................... 00000000 re_finish............... 00000000
re_twice................. 00000000 re_marks................ 00000000
re_saved_marks........... 00000000 refresh_Q@.............. 05762768
concsync_wd_pass@........ 05762770 concsync_wd_init@....... 05762788
concsync_wd_intr@........ 057627A0 concsync_terminate_Q@... 05762810
concsync_lockpart........ 00000000
concconfig_lbuf@......... 0576281C concconfig_wd@.......... 05762874
concconfig_wd_intr@...... 0576288C concconfig_nodes........ 00000000
concconfig_acknodes...... 00000000 concconfig_nacknodes.... 00000000
concconfig_event......... 00000000 concconfig_timeout...... 00000000
llc.flags................ 00000000 llc.ack................. 00000000
llc.nak.................. 00000000 llc.timeout............. 00000000
llc.contention........... 00000000 llc.awakened............ 00000000
llc.wd@.................. 05762920 llc.event............... 00000000
llc.arb_intlock.......... 00000000 llc.arb_intlock@........ 0576293C
dd_conc_reset............ 00000000 @timer_intlock.......... 05762944
timer_intlock............ 00000000
@vg_intlock.............. 05762948 vg_intlock.............. E8003BA0
LVOL............ 05CC8400
work_Q.......... 00000000 lv_status...... 00000000
lv_options...... 00000001 nparts......... 00000001
i_sched......... 00000000 nblocks........ 00040000
parts[0]........ 05706A00 pvol@ 05766000 dev 00120004 start 00000000
parts[1]........ 00000000
parts[2]........ 00000000
maxsize......... 00000000 tot_rds........ 00000000
complcnt........ 00000000 waitlist....... FFFFFFFF
stripe_exp...... 00000000 striping_width. 00000000
lvol_intlock.... 00000000 lvol_intlock@.. 05CC8434
LVOL............ 05CC8440
work_Q.......... 05780D00 lv_status...... 00000002
lv_options...... 00000190 nparts......... 00000001
i_sched......... 00000000 nblocks........ 00044000
parts[0]........ 05706000 pvol@ 05766000 dev 00120004 start 00065100
parts[1]........ 00000000
parts[2]........ 00000000
maxsize......... 00000200 tot_rds........ 00000000
complcnt........ 00000000 waitlist....... FFFFFFFF
stripe_exp...... 00000000 striping_width. 00000000
lvol_intlock.... 00000000 lvol_intlock@.. 05CC8474
 WORK_Q@    BUF@    FLAGS      DEV    BLKNO    BADDR   BCOUNT    RESID      SID
05780D28 0A323580 000C8001 000A0001 00004A08 0FF3A000 00001000 00001000 0080C919
 WORK_Q@    BUF@    FLAGS      DEV    BLKNO    BADDR   BCOUNT    RESID      SID
05780D90 0A323738 000C0000 000A0001 00022420 0B783000 00001000 00001000 0080CC5B
05780D90 0A323D10 000C0000 000A0001 00022408 0B782000 00001000 00001000 0080CC5B
...
LVOL............ 0A752440
work_Q.......... 0A82DD00 lv_status...... 00000002
lv_options...... 00000000 nparts......... 00000001
i_sched......... 00000000 nblocks........ 00002000
parts[0]........ 057222F0 pvol@ 0576C000 dev 00120005 start 000C7100
parts[1]........ 00000000
parts[2]........ 00000000
maxsize......... 00000200 tot_rds........ 00000000
complcnt........ 00000000 waitlist....... FFFFFFFF
stripe_exp...... 00000000 striping_width. 00000000
lvol_intlock.... E80279C0 lvol_intlock@.. 0A752474

pvol Subcommand

The pvol subcommand prints physical volume information.

Example

(0)> pvol 05766000
PVOL............... 05766000
dev............... 00120004 xfcnt............ 00000003
armpos............ 00000000 pvstate.......... 00000000
pvnum............. 00000000 vg_num........... 0000000A
fp................ 00429258 flags............ 00000000
num_bbdir_ent..... 00000000 fst_usr_blk...... 00001100
beg_relblk........ 001F5A7A next_relblk...... 001F5A7A
max_relblk........ 001F5B79 defect_tbl....... 05705500
ca_pv@............ 0576602C sa_area[0]@...... 05766034
sa_area[1]@....... 0576603C pv_pbuf@......... 05766044
conc_func......... 00000000 conc_msgseq...... 00000000
conc_msglen....... 00000000 conc_msgbuf@..... 057660F0
mirror_tur_cmd@... 057660F8 mirror_wait_list. 00000000
ref_cmd@.......... 057661A8 user_cmd@........ 05766254
refresh_intr@..... 05766300
concsync_cmd@..... 05766370 synchold_cmd@.... 0576641C
wd_cmd@........... 057664C8 concsync_intr.... 00000000
concsync_intr_next 00000000
config_cmd@....... 0576657C ack_cmd@......... 05766628
ack_idx........... 00000000 nak_cmd@......... 05767BAC
nak_idx........... 00000000 llc_cmd@......... 05769130
ppCmdTail......... 00000000 send_cmd_lock.... 00000000
send_cmd_lock@.... 057691E0

lvol Subcommand

The lvol subcommand prints logical volume information.

Example

(0)> lvol 05CC8440
LVOL............ 05CC8440
work_Q.......... 05780D00 lv_status...... 00000002
lv_options...... 00000190 nparts......... 00000001
i_sched......... 00000000 nblocks........ 00044000
parts[0]........ 05706000 pvol@ 05766000 dev 00120004 start 00065100
parts[1]........ 00000000
parts[2]........ 00000000
maxsize......... 00000200 tot_rds........ 00000000
complcnt........ 00000000 waitlist....... FFFFFFFF
stripe_exp...... 00000000 striping_width. 00000000
lvol_intlock.... 00000000 lvol_intlock@.. 05CC8474
 WORK_Q@    BUF@    FLAGS      DEV    BLKNO    BADDR   BCOUNT    RESID      SID
05780D28 0A323580 000C8001 000A0001 00004A08 0FF3A000 00001000 00001000 0080C919
 WORK_Q@    BUF@    FLAGS      DEV    BLKNO    BADDR   BCOUNT    RESID      SID
05780D90 0A323738 000C0000 000A0001 00022420 0B783000 00001000 00001000 0080CC5B
05780D90 0A323D10 000C0000 000A0001 00022408 0B782000 00001000 00001000 0080CC5B

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]