Friday, March 27, 2009

solaris查看磁盘的几个命令

这两天规划服务器的磁盘空间 学习到几个命令,记录如下:
#df -ah
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/rootvol 7.9G 3.7G 4.1G 48% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/vx/dsk/var 3.9G 274M 3.6G 7% /var
swap 12G 24K 12G 1% /var/run
swap 12G 20M 12G 1% /tmp
/dev/vx/dsk/oracle 29G 6.2G 22G 22% /oracle
/dev/vx/dsk/data 90G 38G 51G 43% /data
coredb01:vold(pid659)
0K 0K 0K 0% /vol
/dev/vx/dsk/coredb01/vol01
83G 9.5G 69G 13% /oracle/oradata

#format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w210000008783d744,0
1. c1t1d0
/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000000878535c5,0
2. c4t0d0
/pci@8,700000/SUNW,emlxs@4/sd@0,0
3. c4t0d1
/pci@8,700000/SUNW,emlxs@4/sd@0,1
4. c4t1d0
/pci@8,700000/SUNW,emlxs@4/sd@1,0
5. c4t1d1
/pci@8,700000/SUNW,emlxs@4/sd@1,1
6. c5t0d0
/pci@8,700000/SUNW,emlxs@5/sd@0,0
7. c5t0d1
/pci@8,700000/SUNW,emlxs@5/sd@0,1
8. c5t1d0
/pci@8,700000/SUNW,emlxs@5/sd@1,0
9. c5t1d1
/pci@8,700000/SUNW,emlxs@5/sd@1,1
10. emcpower0a
/pseudo/emcp@0
11. emcpower1a
/pseudo/emcp@1
Specify disk (enter its number): ^D
coredb01:/ #iostat -E
sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 12
Vendor: TOSHIBA Product: ODD-DVD SD-C2732 Revision: 1055 Serial No:
Size: 0.00GB <0>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd31 Soft Errors: 1 Hard Errors: 165511 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89120571392>
Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd32 Soft Errors: 1 Hard Errors: 165536 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89118474240>
Media Error: 0 Device Not Ready: 0 No Device: 2 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd46 Soft Errors: 1 Hard Errors: 19 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89120571392>
Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd47 Soft Errors: 1 Hard Errors: 27 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89118474240>
Media Error: 0 Device Not Ready: 0 No Device: 3 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd61 Soft Errors: 1 Hard Errors: 165505 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89120571392>
Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd70 Soft Errors: 1 Hard Errors: 165510 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89118474240>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd97 Soft Errors: 1 Hard Errors: 19 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89120571392>
Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
sd106 Soft Errors: 1 Hard Errors: 14 Transport Errors: 0
Vendor: DGC Product: RAID 10 Revision: 0206 Serial No:
Size: 89.12GB <89118474240>
Media Error: 0 Device Not Ready: 0 No Device: 2 Recoverable: 0
Illegal Request: 1 Predictive Failure Analysis: 0
ssd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No: 0534TW7E49
Size: 146.80GB <146800115712>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
ssd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HITACHI Product: HUS1014FASUN146G Revision: 2A07 Serial No: 0534TW7M20
Size: 146.80GB <146800115712>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
st31 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HP Product: C7438A Revision: V309 Serial No: 9
#

No comments: