|
Solaris Volume Manager
¼³Ä¡Çϱâ
root@tech # cd /cdrom
root@tech # ls
cdrom0 devpro_v9n1_sparc sol_8_204_sparc_2
root@tech # cd cdrom0
root@tech # ls
Copyright Solaris_8 installer
root@tech # cd Solaris_*
root@tech # ls
EA Product Tools
root@tech # cd EA
root@tech # ls
installer products
root@tech # cd prod*
root@tech # ls
DiskSuite_4.2.1 SunScreen_3.1_Lite
root@tech # cd Di*
root@tech # ls
README installer sparc
root@tech # cd sp*
root@tech # ls
Docs Packages Tools
root@tech # cd Pa*
--°æ·Î : CD 2¹ø° CD
# cd /cdrom/sol_8_401_sparc_2/Solaris_8/EA/products/Disksuite_4.2.1/sparc/P
ackages
root@tech # ls
SUNWlvma SUNWlvmr SUNWmdja SUNWmdnu SUNWmdu
SUNWlvmg SUNWmdg SUNWmdnr SUNWmdr SUNWmdx
root@tech # pkgadd -d .
´ÙÀ½°ú °°Àº ÆÐÅ°Áö¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
1 SUNWlvma Solaris Volume Management API's
(sparc) 1.0,REV=2001.11.02.03.17
2 SUNWlvmg Solaris Volume Management Application
(sparc) 1.0,REV=2001.11.14.03.19
3 SUNWlvmr Solaris Volume Management (root)
(sparc) 1.0,REV=2001.11.14.03.19
4 SUNWmdg Solstice DiskSuite Tool
(sparc) 4.2.1,REV=1999.11.04.18.29
5 SUNWmdja Solstice DiskSuite Japanese localization ©¬ x
(sparc) 4.2.1,REV=1999.12.09.15.37
6 SUNWmdnr Solstice DiskSuite Log Daemon Configuration Files ©¬
(sparc) 4.2.1,REV=1999.11.04.18.29
7 SUNWmdnu Solstice DiskSuite Log Daemon
(sparc) 4.2.1,REV=1999.11.04.18.29
8 SUNWmdr Solstice DiskSuite Drivers
(sparc) 4.2.1,REV=1999.12.03.10.00
9 SUNWmdu Solstice DiskSuite Commands
(sparc) 4.2.1,REV=1999.11.04.18.29
10 SUNWmdx Solstice DiskSuite Drivers(64-bit) ©¬ ¼¹ö ¹öÀü È®ÀÎ ÈÄ ¼³Ä¡
(sparc) 4.2.1,REV=1999.11.04.18.29
ó¸®ÇÒ ÆÐÅ°Áö(µé)¸¦ ¼±ÅÃÇϽʽÿÀ.(¶Ç´Â ¸ðµç ÆÐÅ°Áö¸¦
ó¸®ÇÏ·Á¸é'all'À» ÀÔ·ÂÇϽʽÿÀ.) (default: all) [?,??,q]:
ÆÐÅ°Áö¿¹<SUNWlvma>(À»)¸¦ </cdrom/sol_8_204_sparc_2/Solaris_8/EA/products/DiskSuite_4.2.1/sparc/P
ackages>¿¡¼ ó¸® Áß
Solaris Volume Management API's
(sparc) 1.0,REV=2001.11.02.03.17
Copyright 2001 Sun Microsystems, Inc. All rights reserved.
µð·ºÅ丮 </>(À»)¸¦ ÆÐÅ°ÁöÀÇ ±âº» µð·ºÅ丮·Î »ç¿ë
## ÆÐÅ°Áö Á¤º¸ ó¸® Áß
## ½Ã½ºÅÛ Á¤º¸ ó¸® Áß
14°³ ÆÐÅ°Áö °æ·Î À̸§ÀÌ ÀÌ¹Ì Á¦´ë·Î ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù.
## ÆÐÅ°Áö Á¾¼Ó¼º °ËÁõ
## µð½ºÅ© °ø°£ ¿ä±¸ °ËÁõ Áß
## ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ´Â ÆÐÅ°Áö¿ÍÀÇ Ãæµ¹ ¿©ºÎ¸¦ È®ÀÎÇÏ°í ÀÖ½À´Ï´Ù.
´ÙÀ½ÀÇ ÆÄÀÏÀÌ ÀÌ¹Ì ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖÀ¸¸ç ´Ù¸¥ ÆÐÅ°Áö¿¡ ÀÇÇØ
»ç¿ëµÇ°í ÀÖ½À´Ï´Ù:
/usr/sadm/lib/wbem/doc <¼Ó¼º º¯°æ¸¸>
Ãæµ¹ÇÏ´Â ÆÄÀÏÀ» ¼³Ä¡ÇÏ°Ú½À´Ï±î? y
## setuid/setgid ÇÁ·Î±×·¥ Á¡°Ë
## ¼³Ä¡ Àü ½ºÅ©¸³Æ® ½ÇÇà
.
.
.
(10°³ ÆÐÅ°Áö ¼³Ä¡ ¡¦)
## 1° (Àüü: 1) ºÎºÐ ¼³Ä¡
1346 ºí·Ï
## ¼³Ä¡ ÈÄ ½ºÅ©¸³Æ® ½ÇÇà
postinstall: configure driver
(This may take a while.)
<SUNWmdx>(ÀÌ)°¡ ¼º°øÀûÀ¸·Î ¼³Ä¡µÇ¾ú½À´Ï´Ù.
´ÙÀ½°ú °°Àº ÆÐÅ°Áö¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
1 SUNWlvma Solaris Volume Management API's
(sparc) 1.0,REV=2001.11.02.03.17
2 SUNWlvmg Solaris Volume Management Application
(sparc) 1.0,REV=2001.11.14.03.19
3 SUNWlvmr Solaris Volume Management (root)
(sparc) 1.0,REV=2001.11.14.03.19
4 SUNWmdg Solstice DiskSuite Tool
(sparc) 4.2.1,REV=1999.11.04.18.29
5 SUNWmdja Solstice DiskSuite Japanese localization
(sparc) 4.2.1,REV=1999.12.09.15.37
6 SUNWmdnr Solstice DiskSuite Log Daemon Configuration Files
(sparc) 4.2.1,REV=1999.11.04.18.29
7 SUNWmdnu Solstice DiskSuite Log Daemon
(sparc) 4.2.1,REV=1999.11.04.18.29
8 SUNWmdr Solstice DiskSuite Drivers
(sparc) 4.2.1,REV=1999.12.03.10.00
9 SUNWmdu Solstice DiskSuite Commands
(sparc) 4.2.1,REV=1999.11.04.18.29
10 SUNWmdx Solstice DiskSuite Drivers(64-bit)
(sparc) 4.2.1,REV=1999.11.04.18.29
ó¸®ÇÒ ÆÐÅ°Áö(µé)¸¦ ¼±ÅÃÇϽʽÿÀ.(¶Ç´Â ¸ðµç ÆÐÅ°Áö¸¦
ó¸®ÇÏ·Á¸é'all'À» ÀÔ·ÂÇϽʽÿÀ.) (default: all) [?,??,q]: q
*** ÁÖÀÇ »çÇ× ***
½Ã½ºÅÛÀÇ Á¤È®ÇÑ ÀÛµ¿À» À§Çؼ´Â ¹Ýµå½ÃÀçºÎÆÃÇØ¾ß ÇÕ´Ï´Ù.
´ÙÀ½À» ½ÇÇàÇÑ ÈÄ:
shutdown -y -i6 -g0
"ÄÜ¼Ö ·Î±×ÀÎ:" ÇÁ·ÒÇÁÆ®°¡ ³ª¿Ã ¶§±îÁö ±â´Ù¸®½Ê½Ã¿À.
--ÆÐÅ°Áö ¼³Ä¡ ¿©ºÎ È®ÀÎÀÛ¾÷
root@tech # pkginfo | grep mdx
system SUNWhmdx SunSwift SBus Adapter Drivers (64-bit)
system SUNWmdx Solstice DiskSuite Drivers(64-bit)
root@tech # pkginfo | grep -i solstice
ALE SUNWksadl Korean (EUC) Solstice Admintool launcher
system SUNWmdg Solstice DiskSuite Tool
system SUNWmdja Solstice DiskSuite Japanese localization
system SUNWmdnr Solstice DiskSuite Log Daemon Configuration Files
system SUNWmdnu Solstice DiskSuite Log Daemon
system SUNWmdr Solstice DiskSuite Drivers
system SUNWmdu Solstice DiskSuite Commands
system SUNWmdx Solstice DiskSuite Drivers(64-bit)
system SUNWmibii Solstice Enterprise Agents 1.0.3 SNMP daemon
system SUNWsacom Solstice Enterprise Agents 1.0.3 files for root file system
system SUNWsadmi Solstice Enterprise Agents 1.0.3 Desktop Management Interface
system SUNWsadml Solstice Launcher.
system SUNWsadmx Solstice Enterprise Agents 1.0.3 Desktop Management Interface Libraries (64-bit)
system SUNWsasnm Solstice Enterprise Agents 1.0.3 Simple Network Management Protocol
system SUNWsasnx Solstice Enterprise Agents 1.0.3 Simple Network Management Protocol Libraries (64-bit)
root@tech # metadb
metadb: tech: there are no existing databases
Disk Partition ¼³Á¤ ¹× metadb »ý¼º
Metadevice ±¸¼ºÀ» À§ÇÑ Disk Partition ±¸¼ºÀº Data ¿µ¿ª°ú Metadatabase¿µ¿ªÀ¸·Î ³ª´«´Ù
Metadatabase ¿µ¿ªÀº ¾à 10MB Á¤µµ ¼³Á¤ ÇØ ÁÖ¸ç º¹Á¦º»Àº ÇÑ metadb ´ç 3°³ ÀÌ»óÀ¸·Î ÇÑ´Ù.
ex) 18.2GB HDD ÀÏ °æ¿ì
(1) command Prompt¿¡¼ ÀÛ¾÷ ¹æ¹ý
# format
c0t1d0s6, c0t2d0s6 ¡¦ -> 10MB ÇÑ disk ¿¡ Çϳª¾¿
c0t1d0s7, c0t2d0s7 ¡¦ -> 18190MB·Î ÆÄƼ¼Ç ¼³Á¤ÇÏ¸ç °¢ µð½ºÅ©ÀÇ Á¾·ù¿Í ¼³Á¤°ªÀº µ¿ÀÏÇØ¾ß ÇÑ´Ù.
# metadb -a –f -c 3 c0t1d0s6 c0t2d0s6 ¡¦¡¦
-a ; »ý¼º
-f ; °Á¦·Î
-c 3 ; metabd ´ç º¹Á¦º» 3°³
-> »èÁ¦
# metadb -d -f c0t1d0s6
# metaclear d3
(2) File ÆíÁý ÀÛ¾÷ ¹æ¹ý
# vi /etc/opt/SUNWmd/md.tab
mddb 01 c0t1d0s6 c0t2d0s6 ¡¦¡¦
:wq!
# metadb -a -f -c 3 mddb01
È®Àιæ¹ý
# metadb -i
Ç÷¡±× ù° blk ºí·Ï °è¼ö
M pc luo 16 1034 /dev/dsk/c2t0d0s6
a m pc luo 16 1034 /dev/dsk/c2t1d0s6
a pc luo 16 1034 /dev/dsk/c2t8d0s6
a pc luo 16 1034 /dev/dsk/c2t9d0s6
o - mddb ±¸¼ºÀ» ¸¶Áö¸·À¸·Î º¯°æÇϱâ ÀüÀÇ È°¼º º¹Á¦º»ÀÔ´Ï´Ù.
u - ÃֽŠº¹Á¦º»ÀÔ´Ï´Ù.
l - ÀÌ º¹Á¦º»ÀÇ À§Ä¡ÀÚ¸¦ ¼º°øÀûÀ¸·Î Àоú½À´Ï´Ù.
c - º¹Á¦º»ÀÇ À§Ä¡´Â /etc/opt/SUNWmd/mddb.cf ³»¿¡ ÀÖ½À´Ï´Ù.
p - Ä¿³Î¿¡¼ º¹Á¦º»ÀÇ À§Ä¡¸¦ ÆÐÄ¡ÇÏ¿´½À´Ï´Ù.
m - º¹Á¦º»Àº ¸¶½ºÅÍÀÌ°í ÀÌ°ÍÀº ÀԷ¿ëÀ¸·Î ¼±ÅÃÇÑ º¹Á¦º»ÀÔ´Ï´Ù.
W - º¹Á¦º»¿¡ ÀåÄ¡ ¾²±â ¿À·ù°¡ ÀÖ½À´Ï´Ù.
a - º¹Á¦º»À» È°¼ºÈÇÏ¿© ÀÌ º¹Á¦º»À» ¿Ï·áÇÕ´Ï´Ù.
M - º¹Á¦º»¿¡ ¸¶½ºÅÍ ºí·Ï ¹®Á¦°¡ ÀÖ½À´Ï´Ù.
D - º¹Á¦º»¿¡ µ¥ÀÌÅÍ ºí·Ï ¹®Á¦°¡ ÀÖ½À´Ï´Ù.
F - º¹Á¦º»¿¡ Çü½Ä ¹®Á¦°¡ ÀÖ½À´Ï´Ù.
S - º¹Á¦º»ÀÌ ³Ê¹« ÀÛ¾Æ ÇöÀç µ¥ÀÌÅͺ£À̽º¸¦ À¯ÁöÇÒ ¼ö ¾ø½À´Ï´Ù.
R - º¹Á¦º»¿¡ ÀåÄ¡ Àб⠿À·ù°¡ ÀÖ½À´Ï´Ù
Tip>
µð½ºÅ©¸¦ »õ·ÎÀÌ ÀåÂøÇÑ ÈÄ format ¸í·ÉÀ¸·Î ÆÄƼ¼ÇÇÏ´Â ÀÛ¾÷Àº ¶§·Î´Â ±ÍÂúÀ» ¼ö ÀÖ´Ù.
ÀÌ·±¶§¿¡´Â ¼ÒÇÁÆ® ÆÄƼ¼ÇÀ» »ý¼ºÇÏ´Â ¸í·ÉÀÎ metainit d7 -p -e c1t2d0 1G ¸¦ ÀÌ¿ëÇϸé ÆíÇÏ´Ù.
ÀÌ ¸í·ÉÀ» ÅëÇØ µð½ºÅ©ÀÇ ¸¶Áö¸· ÆÄƼ¼Ç(½½¶óÀ̽º-c*t*d*s7)ÀÌ metadb ¿µ¿ªÀ» À§ÇØ ¾à 4MB Å©±â·Î
¼³Á¤µÇ¸ç ³ª¸ÓÁö µð½ºÅ© ¿µ¿ªÀÌ c*t*d*s0 À¸·Î ¼³Á¤µÇ°Ô µÈ´Ù.
ÀÏ´Ü À§ÀÇ ¸í·ÉÀ¸·Î ÆÄƼ¼ÇÀÌ ³ª´©¾îÁö¸é metaclear ¸í·ÉÀ¸·Î meta device¸¦ ´Ù½Ã ¾ø¾Ø´ÙÀ½ »ç¿ëÇÏ¸é µÈ´Ù.
======================================================================
============
# Solaris Volume Manager¸¦ ÀÌ¿ëÇÑ RAID ±¸¼º ½Ç½À
# ½Ç½Àȯ°æ : Solaris9(intel) with VMWare
# µð ½º Å© : 1GB SCSI µð½ºÅ© 5Àå
# c2t1d0s3 - statdb
# s4 - Raid0 (concatenation) d10
# c2t2d0s3 - statdb
# s4 - Raid0 (concatenation) d10
# c2t3d0s3 - statdb
# s4 - Raid5 d15
# c2t4d0s3 - Raid1
# s4 - Raid5 d15
# c2t5d0s3 - Raid1
# s4 - Raid 5d15
======================================================================
============
# devfsadm ---------------------- Ãß°¡ÇÑ µð½ºÅ© ÀνÄ
#
# format ---------------------- ÀÛ¾÷¿¡ ÇÊ¿äÇÑ µð½ºÅ© È®º¸ ¹× ÆÄƼ¼Å´×
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 22189 alt 2 hd 15 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1 <DEFAULT cyl 17750 alt 2 hd 15 sec 63>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c2t0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
/pci@0,0/pci1000,30@10/sd@0,0
3. c2t1d0 <DEFAULT cyl 1020 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,30@10/sd@1,0
4. c2t2d0 <DEFAULT cyl 1020 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,30@10/sd@2,0
5. c2t3d0 <DEFAULT cyl 1020 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,30@10/sd@3,0
6. c2t4d0 <DEFAULT cyl 1020 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,30@10/sd@4,0
7. c2t5d0 <DEFAULT cyl 1020 alt 2 hd 64 sec 32>
/pci@0,0/pci1000,30@10/sd@5,0
Specify disk (enter its number): 3 ---------------------- ÆÄƼ¼Å´×ÇÒ µð½ºÅ© ¼±ÅÃ
selecting c2t1d0
[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
fdisk - run the fdisk program
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
!<cmd> - execute <cmd>, 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
!<cmd> - execute <cmd>, then return
quit
partition> p ---------------------- ÆÄƼ¼Ç Á¤º¸ º¸±â
Current partition table (original):
Total disk cylinders available: 1020 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 1019 1020.00MB (1020/0/0) 2088960
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 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 1.00MB (1/0/0) 2048
9 unassigned wm 0 0 (0/0/0) 0
partition> 3 ---------------------- 3¹ø ½½¶óÀ̽º ÆÄƼ¼Å´×
Part Tag Flag Cylinders Size Blocks
3 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]: ---------------------- ½½¶óÀ̽º ³×ÀÓ
Enter partition permission flags[wm]: ---------------------- ro/rw ¿É¼Ç ¼³Á¤
Enter new starting cyl[0]: ---------------------- ½ÃÀÛÇÒ ½Ç¸°´õ
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 1044480b ---------------------- ¸¶Áö¸· »çÀÌÁî
partition> 4
Part Tag Flag Cylinders Size Blocks
4 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 510
Enter partition size[0b, 0c, 510e, 0.00mb, 0.00gb]: 1044480b
partition> p
Current partition table (unnamed):
Total disk cylinders available: 1020 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 1019 1020.00MB (1020/0/0) 2088960
3 unassigned wm 0 - 509 510.00MB (510/0/0) 1044480
4 unassigned wm 510 - 1019 510.00MB (510/0/0) 1044480
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
8 boot wu 0 - 0 1.00MB (1/0/0) 2048
9 unassigned wm 0 0 (0/0/0) 0
partition> label ---------------------- ¼³Á¤ÇÑ ½½¶óÀ̽º ÀúÀå
Ready to label disk, continue? y ---------------------- µð½ºÅ© 4, 5, 6, 7 ¸ðµÎ µ¿ÀÏÇÑ ÀÛ¾÷À» ÇØÁØ´Ù
partition> q
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
fdisk - run the fdisk program
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
!<cmd> - execute <cmd>, then return
quit
format> q
#
#
# metadb ---------------------- ¸ÞŸµðºñ »óÅ ȮÀÎ
metadb: terran: there are no existing databases
#
#
======================================================================
======
Raid0(concatenation) ±¸¼ºÇϱâ
======================================================================
======
# vi /etc/lvm/md.tab ---------------------- º¼·ý ȯ°æ ±¸¼º ÆÄÀÏ
#
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)md.tab 2.4 02/01/29 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
#
# 100MB Soft Partition
#
# d1 -p /dev/dsk/c1t0d0s1 100M
# blue/d1 -p /dev/dsk/c2t0d0s1 100M
d10 2 1 /dev/dsk/c2t1d0s4 1 /dev/dsk/c2t2d0s4 ---------------------- Raid0(concatenation) ¼³Á¤
:wq!
#
#
# metainit d10 ---------------------- d10¿¡ °üÇÑ ¸ÞŸDB ±¸¼º
d10: Concat/½ºÆ®¸³ÀÌ ¼³Á¤µÊ
#
#
# metastat ---------------------- ¸ÞŸµðºñ È®ÀÎ
d10: Concat/Stripe
Å©±â: 2088960 ºí·Ï(1020 MB)
½ºÆ®¸³ 0:
ÀåÄ¡ ½ÃÀÛ ºí·Ï Dbase Reloc
c2t1d0s4 0 ¾Æ´Ï ¿¹
½ºÆ®¸³ 1:
ÀåÄ¡ ½ÃÀÛ ºí·Ï Dbase Reloc
c2t2d0s4 0 ¾Æ´Ï ¿¹
ÀåÄ¡ Àç¹èÄ¡ Á¤º¸:
ÀåÄ¡ Àç¹èÄ¡ ÀåÄ¡ ID
c2t1d0 ¿¹ id1,sd@f08a4054843c441cb000ca4bf0000
c2t2d0 ¿¹ id1,sd@f08a4054843c441cb000dc69d0001
#
# newfs /dev/md/rdsk/d10 ---------------------- ±¸¼ºÇÑ º¼·ý ÆÄÀϽýºÅÛ »ý¼º
newfs: »õ ½Ã½ºÅÛ ÆÄÀÏ /dev/md/rdsk/d10À»(¸¦) ±¸¼ºÇϽðڽÀ´Ï±î: (y/n)? y
/dev/md/rdsk/d10: 64 Æ®·¢, 32 ¼½ÅÍÀÇ 1020 ½Ç¸°´õ¿¡ ÀÖ´Â 2088960 ¼½ÅÍ
1020.0MB (64 ½Ç¸°´õ ±×·ì) (16 c/g, 16.00MB/g, 7680 i/g)
¼öÆÛ ºí·Ï ¹é¾÷ (fsck -F ufs -o b=#ÀÇ °æ¿ì):
32, 32832, 65632, 98432, 131232, 164032, 196832, 229632, 262432, 295232,
1771232, 1804032, 1836832, 1869632, 1902432, 1935232, 1968032, 2000832,
2033632, 2066432,
#
#
# mkdir md10
# mount /dev/md/dsk/d10 /md10
# df -k
ÆÄÀϽýºÅÛ K¹ÙÀÌÆ® »ç¿ë °¡¿ë ¿ë·® ¼³Ä¡ÁöÁ¡
/dev/dsk/c0d0s0 9424682 1940499 7389937 21% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 590892 20 590872 1% /var/run
swap 591176 304 590872 1% /tmp
/dev/dsk/c0d1s4 96019 1042 85376 2% /mntpoint
/dev/dsk/c0d0s7 480620 2216 430342 1% /export/home
/dev/md/dsk/d10 981999 1041 922039 1% /md10
# cd /md10
# pwd
/md10
# mkfile 500m & ---------------------- ÀÓÀÇÀÇ ÆÄÀÏ »ý¼ºÈÄ
[1] 568
# iostat -xctn 1 ---------------------- ÆÄÀÏ ÀÔÃâ·Â ÇöȲ È®ÀÎ
tty cpu
tin tout us sy wt id
1 48 0 1 2 96
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
9.9 0.9 72.4 1.9 0.1 0.1 8.4 5.0 1 4 c0d0
0.2 0.0 0.2 0.0 0.0 0.0 0.0 1.7 0 0 c0d1
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 fd0
0.2 2.5 1.9 706.9 0.0 0.6 0.0 205.3 0 6 d10
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t0d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t0d0
0.1 0.4 1.8 15.2 0.0 0.0 0.0 19.7 0 0 c2t1d0 ------------- ±¸¼ºÇÑ µð½ºÅ©¿¡
0.0 0.4 1.8 15.1 0.0 0.1 0.0 315.8 0 0 c2t2d0 ------------ µ¿½Ã¿¡ ÆÄÀÏ ¾²±â ÀÛ¾÷
0.0 0.1 1.8 1.8 0.0 0.0 0.0 0.4 0 0 c2t3d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t4d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t5d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 terran:vold(pid347)
#
#
======================================================================
======
Raid 5 ±¸¼ºÇϱâ
======================================================================
======
# vi /etc/lvm/md.tab
d15 -r /dev/dsk/c2t3d0s4 /dev/dsk/c2t4d0s4 /dev/dsk/c2t5d0s4 ---------------------- Raid5 º¼·ý ±¸¼º
"/etc/lvm/md.tab" 68 Çà, 1829 ¹®ÀÚ
#
#
# metainit d15
d15: RAID°¡ ¼³Á¤µÊ
# metastat
d15: RAID
»óÅÂ: È®ÀÎ
ÀÎÅÍ·¹À̽º: 32 ºí·Ï
Å©±â: 2086912 ºí·Ï(1019 MB)
¿ø·¡ÀÇ ÀåÄ¡:
Å©±â: 2088256 ºí·Ï(1019 MB)
ÀåÄ¡ ½ÃÀÛ ºí·Ï Dbase »óÅ Reloc ÇÖ ½ºÆоî
c2t3d0s4 330 ¾Æ´Ï È®ÀÎ ¿¹
c2t4d0s4 330 ¾Æ´Ï È®ÀÎ ¿¹
c2t5d0s4 330 ¾Æ´Ï È®ÀÎ ¿¹
ÀåÄ¡ Àç¹èÄ¡ Á¤º¸:
ÀåÄ¡ Àç¹èÄ¡ ÀåÄ¡ ID
c2t3d0 ¿¹ id1,sd@f08a4054843c441cb000eb94f0002
c2t4d0 ¿¹ id1,sd@f08a4054843c441cc0000f92e0003
c2t5d0 ¿¹ id1,sd@f08a4054843c441cc00020ff60004
#
#
# newfs /dev/md/rdsk/d15
newfs: »õ ½Ã½ºÅÛ ÆÄÀÏ /dev/md/rdsk/d15À»(¸¦) ±¸¼ºÇϽðڽÀ´Ï±î: (y/n)? y
/dev/md/rdsk/d15: 64 Æ®·¢, 32 ¼½ÅÍÀÇ 1019 ½Ç¸°´õ¿¡ ÀÖ´Â 2086912 ¼½ÅÍ
1019.0MB (64 ½Ç¸°´õ ±×·ì) (16 c/g, 16.00MB/g, 7680 i/g)
¼öÆÛ ºí·Ï ¹é¾÷ (fsck -F ufs -o b=#ÀÇ °æ¿ì):
32, 32832, 65632, 98432, 131232, 164032, 196832, 229632, 262432, 295232,
1771232, 1804032, 1836832, 1869632, 1902432, 1935232, 1968032, 2000832,
2033632, 2066432,
#
#
# mkdir /md15
# cd /md15
# mkfile 500m &
# iostat -xctn 1
tty cpu
tin tout us sy wt id
0 1107 2 98 0 0
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0d1
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 fd0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 d10
0.0 18.2 0.0 1017.8 0.0 0.5 0.0 27.4 0 50 d15
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t0d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t0d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t1d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t2d0
24.2 84.8 290.8 1184.4 0.0 0.3 0.0 2.7 0 20 c2t3d0
24.2 84.8 290.8 1184.4 0.0 0.2 0.0 2.1 0 23 c2t4d0
24.2 84.8 290.8 1184.4 0.0 0.3 0.0 2.6 0 19 c2t5d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 terran:vold(pid347)
======================================================================
======
Raid1 ±¸¼ºÇϱâ
<P class=MsoNormal style="MARGIN: 0cm
Ãâó : http://aqua707.cafe24.com/blog/
|