查看Solaris上已安装的物理磁盘个数

在Solaris上,用format命令可以查看主机挂了几块物理硬盘

root@MyServer # format
Searching for disks...done

AVAILABLE 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@g600a0b800018828f000014aa4361ef77
Specify disk (enter its number): 0
selecting 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
        quit
format> q
root@MyServer # 

 在要求指定要操作的磁盘时,随便输入一个序号,然后按q键退出即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值