[Solstice DiskSuite ¼³Ä¡ ¹× »ç¿ë¹ý]
RAID·¹º§ÀÇ °³¿ä
RAID 0 - ½ºÆ®¶óÀÌÇÎ
RAID 1 - ¹Ì·¯¸µ
RAID 2 - ½ºÆ®¶óÀÌÇΰú ¿¡·¯ÀÇ °ËÃâ ¹× Á¤Á¤
RAID 3 - Àü¿ë Æи®Æ¼¿¡ ÀÇÇÑ ½ºÆ®¶óÀÌÇÎ
RAID 4 - Àü¿ë Æи®Æ¼¿¡ ÀÇÇØ °³·®µÅ ½ºÆ®¶óÀÌÇÎ
RAID 5 - »ðÀÔ Æи®Æ¼·Î °³·®µÈ ½ºÆ®¶óÀÌÇÎ
RAID 0+1 - ½ºÆ®¶óÀÌÇΰú ¹Ì·¯¸µ
1. ¼³Ä¡
1.1 Install ȯ°æ
SunOS 5.7 sun4u sparc SUNW,Ultra-Enterprise
1.2 Install
Solaris 7 ÀÇ °æ¿ì¿¡´Â ±âº»ÀûÀ¸·Î Á¦°øµÇ´Â
Solaris Easy Access Server 3.0 CDROM¿¡ µé¾îÀÖ´Ù.
root@stong:/cdrom/cdrom0/products/DiskSuite_4.2/sparc> ls -al
48
drwxrwxr-x 12 root staff 2048 1999 10 26 ./
drwxr-xr-x 6 root staff 2048 1999 10 26 ../
drwxr-xr-x 3 root staff 2048 1999 10 26 Patches/
drwxrwxr-x 5 root staff 2048 1999 10 26 SUNW5mdg/
drwxrwxr-x 5 root staff 2048 1999 10 26 SUNWcmdg/
drwxrwxr-x 5 root staff 2048 1999 10 26 SUNWgmdg/
drwxrwxr-x 5 root staff 2048 1999 10 26 SUNWhmdg/
drwxrwxr-x 5 root staff 2048 1999 10 26 SUNWkmdg/
drwxrwxr-x 5 root staff 2048 1999 10 26 SUNWkumdg/
drwxr-xr-x 5 root staff 2048 1999 10 26 SUNWmd/
drwxr-xr-x 5 root staff 2048 1999 10 26 SUNWmdg/
drwxr-xr-x 5 root staff 2048 1999 10 26 SUNWmdn/
root@stong:/cdrom/cdrom0/products/DiskSuite_4.2/sparc> pkgadd -d .
1.3 Install È®ÀÎ
root@stong:/etc/opt/SUNWmd> pkginfo |grep DiskSuit
system SUNW5mdg Traditional Chinese(BIG5) Package for Solstice DiskSuite Tool
system SUNWcmdg Simplified Chinese(EUC) Package for Solstice DiskSuite Tool
system SUNWgmdg Simplified Chinese(GBK) Package for Solstice DiskSuite Tool
system SUNWhmdg Traditional Chinese(EUC) Package for Solstice DiskSuite Tool
system SUNWkmdg Korean(EUC) Package for Solstice DiskSuite Tool
system SUNWkumdg Korean(UTF-8) Package for Solstice DiskSuite Tool
system SUNWmd Solstice DiskSuite
system SUNWmdg Solstice DiskSuite Tool
system SUNWmdn Solstice DiskSuite Log Daemon
root@stong:/etc/opt/SUNWmd>
1.4 Install À§Ä¡
root@stong:/usr/opt/SUNWmd/sbin> ls -al
15746
drwxr-xr-x 2 bin bin 512 9 30 18:03 ./
drwxr-xr-x 6 root sys 512 9 30 16:42 ../
-rwxr-xr-x 1 bin bin 1563 9 30 16:42 growfs*
-rwxr-xr-x 1 bin bin 340612 9 30 18:03 mdlogd*
-rwxr-xr-x 1 bin bin 265564 9 30 18:02 metaclear*
-rwxr-xr-x 1 bin bin 271988 9 30 18:02 metadb*
-rwxr-xr-x 1 bin bin 265952 9 30 18:02 metadetach*
-rwxr-xr-x 1 bin bin 268316 9 30 18:02 metahs*
-rwxr-xr-x 1 bin bin 268948 9 30 18:02 metainit*
-rwxr-xr-x 1 bin bin 264604 9 30 18:02 metaoffline*
-rwxr-xr-x 1 bin bin 264568 9 30 18:02 metaonline*
-rwxr-xr-x 1 bin bin 267456 9 30 18:02 metaparam*
-rwxr-xr-x 1 bin bin 267000 9 30 18:02 metarename*
-rwxr-xr-x 1 bin bin 266192 9 30 18:02 metareplace*
-rwxr-xr-x 1 bin bin 269260 9 30 18:02 metaroot*
-rwxr-xr-x 1 bin bin 308244 9 30 18:02 metaset*
-rwxr-xr-x 1 bin bin 265764 9 30 18:02 metastat*
-rwxr-xr-x 1 bin bin 267632 9 30 18:02 metasync*
-rwxr-xr-x 1 bin bin 3140224 9 30 18:02 metatool*
-rwxr-xr-x 1 bin bin 267068 9 30 18:02 metattach*
-rwxr-xr-x 1 bin bin 278224 9 30 18:02 rpc.metad*
-rwxr-xr-x 1 bin bin 37688 9 30 18:02 rpc.metamhd*
root@stong:/usr/opt/SUNWmd/sbin>
################# metadb Á¤º¸ ############
root@stong:/etc/opt/SUNWmd> ls -al
30
drwxrwxr-x 2 root sys 512 9 30 18:03 ./
drwxrwxr-x 3 root sys 512 9 30 18:02 ../
-r--r--r-- 1 bin bin 3116 9 30 18:02 SDStool.xpm
-rw-r--r-- 1 root sys 55 9 30 18:02 devpath
-rw-rw-rw- 1 root sys 38 9 30 18:02 lock
-rw-r--r-- 1 root sys 60 9 30 18:02 md.cf
-rw-r--r-- 1 root sys 573 9 30 18:02 md.ctlrmap
-rw-r--r-- 1 root sys 1532 9 30 18:02 md.tab
-rw-r--r-- 1 root sys 85 9 30 18:02 mddb.cf
-rw-r--r-- 1 root sys 1638 9 30 18:03 mdlogd.cf
root@stong:/etc/opt/SUNWmd>
2. Disk ÆÄƼ¼Ç (µð½ºÅ© 2°³¸¦ ÅëÀ¸·Î ¹±â)
root@stong:/usr/opt/SUNWmd/sbin> format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w21000020378f1013,0
1. c0t1d0 <SEAGATE-ST373405FC-0005 cyl 29523 alt 2 hd 8 sec 607>
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w21000004cf989b23,0
2. c0t2d0 <SEAGATE-ST373405FC-0005 cyl 29523 alt 2 hd 8 sec 607>
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w21000004cf988b04,0
3. c0t3d0 <SEAGATE-ST373405FC-0005 cyl 29523 alt 2 hd 8 sec 607>
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w21000004cf988f49,0
########### 2¹ø°ú 3¹ø µð½ºÅ© ºÐÇÒ ³»¿ª ############
½½¶óÀ̽º 0¿¡ metadb ¿µ¿ª(10mbÁ¤µµ)À» ÇÒ´çÇÏ°í
³ª¸ÓÁö µ¥ÀÌÅÍ ¿µ¿ªÀº ½½¶óÀ̽º 6¿¡ ÇÒ´çÇÏ¿´´Ù.
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 4 11.86MB (5/0/0) 24280
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 29522 68.36GB (29523/0/0) 143363688
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 5 - 29522 68.35GB (29518/0/0) 143339408
7 unassigned wm 0 0 (0/0/0) 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 4 11.86MB (5/0/0) 24280
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 29522 68.36GB (29523/0/0) 143363688
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 5 - 29522 68.35GB (29518/0/0) 143339408
7 unassigned wm 0 0 (0/0/0) 0
3. DiskSuit »ç¿ëÇϱâ
±×·¡ÇÈ Åø°ú command¸¦ ÀÌ¿ëÇÏ´Â ¹æ¹ýÀÌ ÀÖ´Ù.
3.1 command ÀÌ¿ë
3.1.1 metadb »ý¼ºÇϱâ
root@stong:/usr/opt/SUNWmd/sbin> metadb -a -f -c 3 c0t2d0s0 c0t3d0s0
-a : attach
-f : state db Ãʱ⠸¸µé±â
-c : ½½¶óÀ̽º¸¶´Ù ¸¸µé state dbÀÇ replica(º¹Á¦º») °³¼ö
root@stong:/usr/opt/SUNWmd/sbin> metadb
blk
a u 16 1034 /dev/dsk/c0t2d0s0
a u 1050 1034 /dev/dsk/c0t2d0s0
a u 2084 1034 /dev/dsk/c0t2d0s0
a u 16 1034 /dev/dsk/c0t3d0s0
a u 1050 1034 /dev/dsk/c0t3d0s0
a u 2084 1034 /dev/dsk/c0t3d0s0
root@stong:/usr/opt/SUNWmd/sbin>
################ md.tabÀÇ ³»¿ë ##################
root@stong:/etc/opt/SUNWmd> more md.tab
#
#ident "@(#)md.tab 1.6 94/11/14 SMI"
#
# md.tab
#
# metainit utility input file.
#
# The following examples show the format for local metadevices, and a
# similar example for a shared metadevice, where appropiate. The shared
# metadevices are in the diskset named "blue":
#
# Metadevice database entry:
#
# mddb01 /dev/dsk/c0t2d0s0 /dev/dsk/c0t0d0s0
#
# Concatenation of devices:
#
# d10 2 1 /dev/dsk/c0t2d0s0 1 /dev/dsk/c0t0d0s0
# blue/d10 2 1 /dev/dsk/c2t2d0s0 1 /dev/dsk/c2t0d0s0
#
# Stripe of devices:
#
# d11 1 2 /dev/dsk/c0t2d0s1 /dev/dsk/c0t0d0s1
# blue/d11 1 2 /dev/dsk/c2t2d0s1 /dev/dsk/c2t0d0s1
#
# Concatenation of stripes (with a hot spare pool):
#
# d13 2 2 /dev/dsk/c0t2d0s0 /dev/dsk/c0t0d0s0 \
# 2 /dev/dsk/c0t2d0s1 /dev/dsk/c0t0d0s1 -h hsp001
# blue/d13 2 2 /dev/dsk/c2t2d0s0 /dev/dsk/c2t0d0s0 \
# 2 /dev/dsk/c2t2d0s1 /dev/dsk/c2t0d0s1 -h blue/hsp001
#
# Two way mirror:
#
# d14 -m d10 d11
# blue/d14 -m blue/d10 blue/d11
#
# Logging w/components for master and logging device
#
# d0 -t /dev/dsk/c1t2d0s0 /dev/dsk/c1t0d0s0
# blue/d0 -t /dev/dsk/c2t2d0s0 /dev/dsk/c2t0d0s0
#
# Logging with mirrored master device and striped logging device
#
# d1 -t d14 d13
# blue/d1 -t blue/d14 blue/d13
#
# RAID of devices
#
# d15 -r /dev/dsk/c1t0d0s0 /dev/dsk/c1t1d0s0 \
# /dev/dsk/c1t2d0s0 /dev/dsk/c1t3d0s0
# blue/d15 -r /dev/dsk/c2t0d0s0 /dev/dsk/c2t1d0s0 \
# /dev/dsk/c2t2d0s0 /dev/dsk/c2t3d0s0
#
# Hot Spare Pool of devices
#
# hsp001 /dev/dsk/c1t0d0s0
# blue/hsp001 /dev/dsk/c2t0d0s0
################## stripe(raid 0) ¹æ½ÄÀ¸·Î Ãß°¡ÇÑ ºÎºÐ ###############
d10 1 2 /dev/dsk/c0t2d0s6 /dev/dsk/c0t3d0s6
root@stong:/etc/opt/SUNWmd>
root@stong:/usr/opt/SUNWmd/sbin> metainit -f d10
d10: / .
root@stong:/usr/opt/SUNWmd/sbin> metadb
blk
a u 16 1034 /dev/dsk/c0t2d0s0
a u 1050 1034 /dev/dsk/c0t2d0s0
a u 2084 1034 /dev/dsk/c0t2d0s0
a u 16 1034 /dev/dsk/c0t3d0s0
a u 1050 1034 /dev/dsk/c0t3d0s0
a u 2084 1034 /dev/dsk/c0t3d0s0
root@stong:/usr/opt/SUNWmd/sbin> metastat
d10: Concat/Stripe
: 286673960
0: (: 32 )
Dbase
c0t2d0s6 0
c0t3d0s6 0
############### file system »õ·Î »ý¼º ############
root@stong:/usr/opt/SUNWmd/sbin> newfs /dev/md/rdsk/d10
newfs: construct a new file system /dev/md/rdsk/d10: (y/n)? y
/dev/md/rdsk/d10: 286673960 59035 8 , 607
1090590284 0.0MB(22 c/g, 52.16MB/g, 6400 i/g)
- (fsck -F ufs -o b=# ) :
32, 107472, 214912, 322352, 429792, 537232, 644672, 752112, 854688, 962128,
1069568, 1177008, 1284448, 1391888, 1499328, 1606768, 1709344, 1816784,
1924224, 2031664, 2139104, 2246544, 2353984, 2461424, 2564000, 2671440,
2778880, 2886320, 2993760, 3101200, 3208640, 3316080, 3418656, 3526096,
root@stong:/> mkdir data1
root@stong:/usr/opt/SUNWmd/sbin> mount /dev/md/dsk/d10 /data1
root@stong:/usr/opt/SUNWmd/sbin> df -ak
K
/proc 0 0 0 0% /proc
/dev/dsk/c0t1d0s0 5042298 322736 4669140 7% /
/dev/dsk/c0t1d0s6 5042298 892391 4099485 18% /usr
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t1d0s7 57474770 9 56900014 1% /export/home
swap 3828000 568 3827432 1% /tmp
-hosts 0 0 0 0% /net
auto_home 0 0 0 0% /home
-xfn 0 0 0 0% /xfn
stong:vold(pid629) 0 0 0 0% /vol
/dev/md/dsk/d10 141146778 9 139735302 1% /data1
root@stong:/usr/opt/SUNWmd/sbin>
|