mdb写経/UFS

2012/09/28

dcmds

address ::acl

inode を指定して、acl を表示します。

> ffffff01da291d00::acl
            ADDR TAG                 PERM        WHO
ffffff01e2c22628 USER_OBJ              06          0
ffffff01e151de10 GROUP_OBJ              0          3
ffffff01e35968e8 OTHER_OBJ              0          0
ffffff01e0cca3c8 USER                  07      60004

[ address ] ::cg [-v]

cylinder group 構造体の概要を表示します。

> ::cg
 CGX               CG       NDIR     NBFREE     NIFREE     NFFREE
   3      30002d5e000       4298        798          0       8831
  40      300029f2000        190        811       5268        126
  26      30004c7e000        192        435       5444         79
   5      300029f8000       4134        441         58       3210
  49      30002d48000        196        541       4488        430
   7      30002eaa000         99        452       3462        235
  37      300037f2000          0        135       4783        122
  74      30004b96000        194        499       5098        565
  23      30003ec6000          0        225         81        476
  27      30003f78000        186        618       4760         31
  34      300045c8000          0          6         43        215
   6      30002b00000        852          1       1430       2138
 140      30002ac4000          0       1073       5824          0
  66      30004bdc000          0          0          6         53
   8      30002e86000         92        922       1448         40

> 30002d5e000::cg -v
cg 3 (0000030002d5e000)
    time:       2012 May  8 11:00:07
    ndir:       4298
    nbfree:     798
    nifree:     0
    nffree:     8831
    frsum:      114     29      35      32      80      192     982
    used inode map (0000030002d5e1e8):
        0-5823
    free block map (0000030002d5e4c0):
        1107-1111, 1168-1170, 1490-1495, 1616-1619, 3125, 3184, 3194, 3200,
        3207, 3210, 3212, 3224, 3248, 3267, 3275, 3282, 3285, 3295, 3312, 3328,
        3352, 3356, 3364, 3366, 3368, 3373, 3377, 3392, 3416, 3496, 3513, 3588,
    :
    :
        34754-34775, 34792-34815, 34829-41143
    free block positions:
        c0:     (0)      0 0 0 0 0 0 0 0
        c1:     (0)      0 0 0 0 0 0 0 0
        c2:     (0)      0 0 0 0 0 0 0 0
        c3:     (0)      0 0 0 0 0 0 0 0
        c4:     (0)      0 0 0 0 0 0 0 0
        c5:     (0)      0 0 0 0 0 0 0 0
        c6:     (0)      0 0 0 0 0 0 0 0
        c7:     (0)      0 0 0 0 0 0 0 0
        c8:     (0)      0 0 0 0 0 0 0 0
        c9:     (0)      0 0 0 0 0 0 0 0
        c10:    (2)      0 0 0 0 1 1 0 0
        c11:    (261)    31 32 33 33 33 33 33 33
        c12:    (384)    48 48 48 48 48 48 48 48
        c13:    (151)    19 19 19 19 19 19 19 18
        c14:    (0)      0 0 0 0 0 0 0 0
        c15:    (0)      0 0 0 0 0 0 0 0

address ::inode [-v]

inode_t 構造体の概要を表示します。

> 00000300038112c8::inode -v
ADDR                INUMBER T  MODE     SIZE      DEVICE FLAG
00000300038112c8          2 d  0755      200  5500000046 <REF>
  2012 Apr  3 10:50:02
  /export/home

[ address ] ::inode_cache [-d device] [-i inumber]

キャッシュされた inode_t 構造体を表示します。inode のアドレス、inode 番号、および/またはデバイスが指定されている場合は、指定した条件に一致する inode キャッシュを検索します。出力がパイプである場合、アドレス以外は出力しません。

-d device 指定したデバイスでフィルタを行います
-i inumber 指定した inode 番号でフィルタを行います
> ::inode_cache
ADDR                INUMBER          DEVICE CHAIN
00000300038112c8          2      5500000046     2
0000030000359e38          2      550000000a     2
0000030004942750          4      5500000046     4
00000300038115a8          4      550000000a     4
0000030003811438          5      550000000a     5
0000030004d5eff8      65590      550000000a    54
00000300046c08a0      16554      550000000a   170
00000300046c0730      16559      550000000a   175
0000030004055158      65807      550000000a   271
000003000465e018      65842      550000000a   306
    :
    :

> ::inode_cache -i 2
ADDR                INUMBER          DEVICE CHAIN
00000300038112c8          2      5500000046     2
0000030000359e38          2      550000000a     2

::dumphotspare

hot spare pool を表示します。

> ::dumphotspare
Hotspare Pools for set number 0

::dumpnamespace [-s setname]

SVM name space を表示します。

> ::dumpnamespace
------ Name Space for setno 0 ------
hh_header: 30000c9c358
did hh_header: 30000c9d350
hh_names: 30000375910
hh_shared: 30000375920
did hh_names: 300003758e8
did hh_shared: 300003758f8
hh_names:30000375910
  nmn_record: 30000c9c35c
    r_revision:        0
    r_alloc_size:      0
    r_used_size:       0
    r_next_recid:      3
    xr_next_rec:       0
    r_next_key:       13

  nmn_nextp 30001257400
  nmn_record: 30001379080
    r_revision:        0
    r_alloc_size:    512
    r_used_size:     432
    r_next_recid:      0
    xr_next_rec:       0
    r_next_key:        0
    r_name[0] at 30001379098
      n_key:    1
      n_count:  1
      n_minor:  8
      n_drv_key:    1007
      n_dir_key:    1008
      n_namlen: 9
      n_name:   c0t0d0s0 at 300013790b2
    r_name[1] at 300013790bc
      n_key:    2
      n_count:  1
      n_minor:  0
      n_drv_key:    1007
      n_dir_key:    1008
      n_namlen: 9
      n_name:   c0t2d0s0 at 300013790d6
    :
    :

::dumpsetaddr [-s setname]

SVM set addresse を表示します。

> ::dumpsetaddr
0 19025a0


walker

acl

指定された inode_t 構造体のアドレスの、acl コアに対して反復適用します。

> ffffff01da291d00::walk acl |::print struct acl a_perm
a_perm = 0x6
a_perm = 0
a_perm = 0
a_perm = 0x7

cg

指定された cg 構造体のセットに対して反復適用します。

> ::walk cg |::print struct cg cg_cs.cs_ndir
cg_cs.cs_ndir = 0x10ca
cg_cs.cs_ndir = 0x11c
cg_cs.cs_ndir = 0x26
cg_cs.cs_ndir = 0xbe
cg_cs.cs_ndir = 0xc0
cg_cs.cs_ndir = 0x1026
cg_cs.cs_ndir = 0xc4
cg_cs.cs_ndir = 0
cg_cs.cs_ndir = 0
    :
    :

inode_cache

指定された inode_t 構造体のセットに対して反復適用します。

> ::walk inode_cache |::print inode_t i_vnode |::vnode2path
/export/home
/
/export/home/nishioka
/export
/export/home
/usr/dt/lib/libXm.so.4
/var/sadm/install/.pkg.lock.client
/var/sadm/install/.door
    :
    :

0 件のコメント:

コメントを投稿