bdf 得到磁盤利用情況
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 17186816 12793184 4374848 75% /
/dev/vg00/lvol1 298928 59400 209632 22% /stand
/dev/vg03/lvol1 415072256 291037032 123066240 70% /data
/dev/vg01/lvol1 1073594368 899931712 172371816 84% /data1
/dev/vg02/lvol1 1037942784 375667744 657193112 36% /data2
從上可以知道當前有哪些文件系統,以及邏輯卷,邏輯組的對應關係。
比如文件系統 /data ---> 邏輯組vg01的邏輯卷lvol1
vgdisplay -v vg00 得到vg00的信息。
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write (或是read-only)
VG Status available
Max LV 255 (最大邏輯卷數)
Cur LV 3 (當前邏輯卷數)
Open LV 3 (已打開邏輯卷數)
Max PV 16 (最大物理卷數)
Cur PV 2
Act PV 2
Max PE per PV 4384 (一個物理卷可分配的最大物理段塊個數,
如一塊磁盤最多分配4384*16M的空間給vg00,
最好設的大點,不然以後換大硬盤,可能會有限制,到時只能推倒重來!)
VGDA 4 (Volume Group Description Area,卷組描述區的個數,)
PE Size (Mbytes) 16 (Physical Extent 一個物理段塊大小)
Total PE 8748 (就是vg00共有8748*16M空間)
Alloc PE 4696
Free PE 4052
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1 (邏輯卷1)
LV Status available/syncd
LV Size (Mbytes) 304 (19*16M)
Current LE 19 (邏輯段塊個數)
Allocated PE 38 (分配的物理段塊個數,正好是LE*2, 可以知道是有Mirror的)
Used PV 2 (用了兩個物理卷)
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 20480
Current LE 1280
Allocated PE 2560
Used PV 2
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 16784
Current LE 1049
Allocated PE 2098
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c2t1d0 (物理卷設備名)
PV Status available
Total PE 4374
Free PE 2026
Autoswitch On
PV Name /dev/dsk/c2t0d0
PV Name /dev/dsk/c9t0d2 Alternate Link (自己加的) (出現Alternate Link,說明同一個設備可能有多條路徑訪問,其實就是增加可靠性,比如有兩個控制器)
PV Status available
Total PE 4374
Free PE 2026
Autoswitch On
先到這裏吧, VGDA的概念還要學學,再補上!
下篇寫寫
ioscan -fnCdisk
armdsp -i
armdsp -a
diskinfo
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 17186816 12793184 4374848 75% /
/dev/vg00/lvol1 298928 59400 209632 22% /stand
/dev/vg03/lvol1 415072256 291037032 123066240 70% /data
/dev/vg01/lvol1 1073594368 899931712 172371816 84% /data1
/dev/vg02/lvol1 1037942784 375667744 657193112 36% /data2
從上可以知道當前有哪些文件系統,以及邏輯卷,邏輯組的對應關係。
比如文件系統 /data ---> 邏輯組vg01的邏輯卷lvol1
vgdisplay -v vg00 得到vg00的信息。
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write (或是read-only)
VG Status available
Max LV 255 (最大邏輯卷數)
Cur LV 3 (當前邏輯卷數)
Open LV 3 (已打開邏輯卷數)
Max PV 16 (最大物理卷數)
Cur PV 2
Act PV 2
Max PE per PV 4384 (一個物理卷可分配的最大物理段塊個數,
如一塊磁盤最多分配4384*16M的空間給vg00,
最好設的大點,不然以後換大硬盤,可能會有限制,到時只能推倒重來!)
VGDA 4 (Volume Group Description Area,卷組描述區的個數,)
PE Size (Mbytes) 16 (Physical Extent 一個物理段塊大小)
Total PE 8748 (就是vg00共有8748*16M空間)
Alloc PE 4696
Free PE 4052
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1 (邏輯卷1)
LV Status available/syncd
LV Size (Mbytes) 304 (19*16M)
Current LE 19 (邏輯段塊個數)
Allocated PE 38 (分配的物理段塊個數,正好是LE*2, 可以知道是有Mirror的)
Used PV 2 (用了兩個物理卷)
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 20480
Current LE 1280
Allocated PE 2560
Used PV 2
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 16784
Current LE 1049
Allocated PE 2098
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c2t1d0 (物理卷設備名)
PV Status available
Total PE 4374
Free PE 2026
Autoswitch On
PV Name /dev/dsk/c2t0d0
PV Name /dev/dsk/c9t0d2 Alternate Link (自己加的) (出現Alternate Link,說明同一個設備可能有多條路徑訪問,其實就是增加可靠性,比如有兩個控制器)
PV Status available
Total PE 4374
Free PE 2026
Autoswitch On
先到這裏吧, VGDA的概念還要學學,再補上!
下篇寫寫
ioscan -fnCdisk
armdsp -i
armdsp -a
diskinfo