ºìÁªLinuxÃÅ»§
Linux°ïÖú

solaris8Éý¼¶ºó£¬´ÅÅÌÖØÐ°²×°»Ö¸´

·¢²¼Ê±¼ä:2008-08-09 00:31:52À´Ô´:ºìÁª×÷Õß:Members
±³¾°ÐÅÏ¢£º
¿ª·¢»·¾³£¬ÔËÐÐsybase12.5
OS: solaris8
2¿é´ÅÅÌ
Ô­À´ÓиöÈíÕóÁÐraid0£¬ ÓÃdisksuite½¨Á¢µÄ£¬ºóÀ´£¬OS³öÁËÎÊÌ⣨ʹÓÃshell¹ý³ÌÖУ¬¿ÉÄÜÊÇϵͳÎļþÊܵ½Ó°Ï죩£¬ÏµÍ³ÖØÐ°²×°£¬Îª¼òµ¥Æð¼û£¬²ÉÓÃupgrade·½Ê½¡£Éý¼¶°²×°Íê³Éºó£¬Ö»ÓÐÒ»¿é´ÅÅÌ×Ô¶¯¼ÓÔØÁË£¬ÁíÍâÒ»¿éͨ¹ýÊÖ¹¤¼ÓÔØ·ÖÇø£¬Ò²Ã»ÎÊÌâ¡£µ«ÊÇÔ­À´µÄraid0·ÖÇø²»ÖªÔõô»Ö¸´£¨×é³ÉµÄ·ÖÇøÖªµÀ£¬Á½´ÅÅ̶ÔÓ¦µÄ20GµÄ·ÖÇø¾ÍÊÇ£©£¿Éý¼¶Ç°µÄÅäÖÃÐÅÏ¢±»overwrite
ÏÂÃæÊÇ´ÅÅÌÐÅÏ¢£º
ÒýÓÃ:
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ÉÏÀ´¿´¿´ÄÚÈÝ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ