在存储上划分LUN并map到主机,用format命令已经识别出map过来的LUN。
root@node1:/ #> format
Searching for disks...donec2t0d4: configured with capacity of 19.96GB
c3t0d4: configured with capacity of 19.96GBAVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c2t0d0 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,0
2. c2t0d1 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,1
3. c2t0d2 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,2
4. c2t0d3 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,3
5. c2t0d4 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,4
6. c3t0d0 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,0
7. c3t0d1 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,1
8. c3t0d2 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,2
9. c3t0d3 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,3
10. c3t0d4 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,4
Specify disk (enter its number):
Specify disk (enter its number): ^C
但用vxdisk list命令查看磁盘时,磁盘状态为error。
root@node1:/ #> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:none - - online invalid
c2t0d0s2 auto:cdsdisk - - online
c2t0d1s2 auto:cdsdisk - - online
c2t0d2s2 auto:cdsdisk - - online
c2t0d3s2 auto:none - - online invalid
c3t0d4s2 auto - - error
用vxdisksetup初始化磁盘时,显示"dmpnode xxxxx is disabled”。
root@node1:/ #> vxdisksetup -i c3t0d4
VxVM vxdisksetup ERROR V-5-2-3628 The dmpnode c3t0d4s2 is disabled.Can not
proceed with vxdisksetup.
再次使用format命令查看error对应的磁盘时,发现磁盘未做label。
root@node1:/ #> format
Searching for disks...donec2t0d4: configured with capacity of 19.96GB
c3t0d4: configured with capacity of 19.96GBAVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c2t0d0 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,0
2. c2t0d1 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,1
3. c2t0d2 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,2
4. c2t0d3 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,3
5. c2t0d4 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252576,4
6. c3t0d0 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,0
7. c3t0d1 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,1
8. c3t0d2 <HITACHI-DF600F-0000 cyl 8 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,2
9. c3t0d3 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,3
10. c3t0d4 <HITACHI-DF600F-0000 cyl 1090 alt 2 hd 50 sec 768>
/pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e8010252572,4
Specify disk (enter its number): 10
selecting c3t0d4
[disk formatted]
Disk not labeled. Label it now? yFORMAT 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> quit
Label磁盘后,再用Veritas命令重新扫描一下磁盘,磁盘状态恢复正常。
root@node1:/ #> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:none - - online invalid
c2t0d0s2 auto:cdsdisk - - online
c2t0d1s2 auto:cdsdisk - - online
c2t0d2s2 auto:cdsdisk - - online
c2t0d3s2 auto:cdsdisk - - online
c3t0d4s2 auto - - error
root@node1:/ #>
root@node1:/ #>
root@node1:/ #> vxdctl enable
root@node1:/ #> vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:none - - online invalid
c2t0d0s2 auto:cdsdisk - - online
c2t0d1s2 auto:cdsdisk - - online
c2t0d2s2 auto:cdsdisk - - online
c2t0d3s2 auto:cdsdisk - - online
c3t0d4s2 auto:none - - online invalid