- 论坛徽章:
- 0
|
本帖最后由 lwlava 于 2011-12-21 16:09 编辑
用sun的SVM在阵列的磁盘上建立了设备集,后阵列上的硬盘会变成只有0、7号分区,而没有通常的2号分区(在sun 中代表整个硬盘),这样就导致VXVM无法识别阵列上的硬盘,用vxdisk list 不能列出。
解决办法1:
重新为阵列上的硬盘进行手动分区。因为format ->disk X-> type ->0->label 不能成功。只能手动一个一个分区的重新建立,关键是一定要有2号分区(即cXtXd0s2),分好后再进行label.
解决办法2:
找一块没用过的或者是分区是SUN的正常分区的(即有2号分区)同样型号的硬盘加到阵列中,然后把分区表信息复制到VXVM不能识别的硬盘上。
命令如下:
prtvtoc /dev/rdsk/c2t0d0s2 |fmthard -s - /dev/rdsk/c2t8d0s2
这样就修复了阵列被破坏了分区表信息的硬盘了。再执行
vxconfigd -k -r reset
就可以在VXVM用vxdisk list 找到硬盘了。
删除 /dev/dsk/c2* c3* /dev/rdsk/c2* c3* /dev/cfg/c2 c3
关机到OK,再用boot -r 重新启动系统。
解决方法3:
# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SEAGATE-ST930003SSUN300G-0868-279.40GB>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0
1. c0t1d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0
Specify disk (enter its number): 0
selecting c0t0d0
[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
inquiry - show vendor, product and revision
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> l
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
Warning: This disk has an EFI label. Changing to SMI label will erase all
current partitions.
Continue? yes
Auto configuration via format.dat[no]? yes
format> q
[ 本帖最后由 lwlava 于 2008-5-7 23:47 编辑 ] |
|