背景信息:
開發環境,運行sybase12.5
OS: solaris8
2塊磁盤
原來有個軟陣列raid0, 用disksuite建立的,後來,OS出了問題(使用shell過程中,可能是系統文件受到影響),系統重新安裝,為簡單起見,采用upgrade方式。升級安裝完成後,只有一塊磁盤自動加載了,另外一塊通過手工加載分區,也沒問題。但是原來的raid0分區不知怎麼恢復(組成的分區知道,兩磁盤對應的20G的分區就是)?升級前的配置信息被overwrite
下面是磁盤信息:
QUOTE:bash-2.03# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 hdb
/pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
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
! - execute , then return
quit
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 3004 14.58GB (3005/0/0) 30578880
1 unassigned wm 3005 - 6038 14.72GB (3034/0/0) 30873984
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 7688 - 7708 104.34MB (21/0/0) 213696
4 unassigned wm 7709 - 11830 20.00GB (4122/0/0) 41945472
5 swap wu 6039 - 7687 8.00GB (1649/0/0) 16780224
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 11831 - 14086 10.95GB (2256/0/0) 22957056
------------------- above is 1st disk info---------------------
bash-2.03# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 hdb
/pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0: hdb
[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
! - execute , then return
quit
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> p
Volume: hdb
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 7708 37.41GB (7709/0/0) 78446784
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 7709 - 11830 20.00GB (4122/0/0) 41945472
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition>
------------
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 15058251 7860844 7046825 53% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 14936456 16 14936440 1% /var/run
swap 14936456 16 14936440 1% /tmp
/dev/dsk/c1t0d0s1 15203499 9174316 5877149 61% /opt
/dev/dsk/c1t0d0s7 11304940 650191 10541700 6% /export/home
/dev/dsk/c1t1d0s0 38631235 25546961 12697962 67% /data-hdb
#
# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s5 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c1t0d0s1 /dev/rdsk/c1t0d0s1 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 /data-hdb ufs 2 yes -
#恢復方法
新手看到磁盤不會自動mount上來時(第二塊磁盤,非引導磁盤),不知怎麼辦好。
upgrade安裝後,第二塊磁盤上的分區不會自動mount上來,需要手工mount,並添加到 /etc/vfstab,一般普通分區知道怎麼mount上來(每個分區mount上來,看看內容,可以獲得一些信息後,就可以知道mount point)
陣列分區,可能不知道怎麼mount上來,查下資料,得知raid分區在 /dev/md/dsk/*下,一般從d0開始編號,可以嘗試mount上來看看內容。