- 論壇徽章:
- 0
|
本帖最后由 lwlava 于 2011-12-21 16:09 編輯
用sun的SVM在陣列的磁盤上建立了設(shè)備集,后陣列上的硬盤會變成只有0、7號分區(qū),而沒有通常的2號分區(qū)(在sun 中代表整個硬盤),這樣就導(dǎo)致VXVM無法識別陣列上的硬盤,用vxdisk list 不能列出。
解決辦法1:
重新為陣列上的硬盤進行手動分區(qū)。因為format ->disk X-> type ->0->label 不能成功。只能手動一個一個分區(qū)的重新建立,關(guān)鍵是一定要有2號分區(qū)(即cXtXd0s2),分好后再進行l(wèi)abel.
解決辦法2:
找一塊沒用過的或者是分區(qū)是SUN的正常分區(qū)的(即有2號分區(qū))同樣型號的硬盤加到陣列中,然后把分區(qū)表信息復(fù)制到VXVM不能識別的硬盤上。
命令如下:
prtvtoc /dev/rdsk/c2t0d0s2 |fmthard -s - /dev/rdsk/c2t8d0s2
這樣就修復(fù)了陣列被破壞了分區(qū)表信息的硬盤了。再執(zhí)行
vxconfigd -k -r reset
就可以在VXVM用vxdisk list 找到硬盤了。
刪除 /dev/dsk/c2* c3* /dev/rdsk/c2* c3* /dev/cfg/c2 c3
關(guān)機到OK,再用boot -r 重新啟動系統(tǒng)。
解決方法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 編輯 ] |
|