查看Solaris上已安装的物理磁盘个数
在Solaris上,用format命令可以查看主机挂了几块物理硬盘
root@MyServer # formatSearching for disks...doneAVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf9b0513,0 1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf7ff179,0 2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424> /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf9bfce1,0 3. c1t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107> /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037b3641f,0 4. c1t5d0 <SUN-T300-0201 cyl 34530 alt 2 hd 112 sec 128> /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf7ff13d,0 5. c5t600A0B8000292BDE000035D8467870EAd0 <STK-FLEXLINE380-0619 cyl 38398 alt 2 hd 128 sec 64> /scsi_vhci/ssd@g600a0b8000292bde000035d8467870ea 6. c5t600A0B8000292BDE000035FD4BDF6334d0 <STK-FLEXLINE380-0660 cyl 51198 alt 2 hd 128 sec 64> /scsi_vhci/ssd@g600a0b8000292bde000035fd4bdf6334 7. c5t600A0B80002925BE0000DA2646787097d0 <STK-FLEXLINE380-0619 cyl 51198 alt 2 hd 64 sec 64> /scsi_vhci/ssd@g600a0b80002925be0000da2646787097 8. c5t600A0B800018828F000014AA4361EF77d0 <SUN-CSM100_R_FC-0610 cyl 52119 alt 2 hd 256 sec 64> /scsi_vhci/ssd@g600a0b800018828f000014aa4361ef77Specify disk (enter its number): 0selecting c1t0d0[disk formatted]FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk repair - repair a defective sector label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions inquiry - show vendor, product and revision volname - set 8-character volume name !<cmd> - execute <cmd>, then return quitformat> qroot@MyServer #
?在要求指定要操作的磁盘时,随便输入一个序号,然后按q键退出即可。