Disk ±¸¼º
Disk partitioning
n Disk partition À̶õ?
»ç¿ëÀÚÀÇ ¸ñÀû¿¡ ¸Â°Ô size, ¼º´É, ¾ÈÁ¤È ¹æ¾È µîÀ» °í·ÁÇÏ¿© ¸¸µç
physical diskÀÇ ÀϺκÐ
n Disk partitioning ¹æ¹ý
a. Whole disk partitioning : ±¸¼ºÀÌ °£Æí
b. LVM : ¸¹Àº °ü¸®»óÀÇ À¯¿¬¼º ¹× À¶Å뼺(flexibility) Á¦°ø
5.2 LVM °³¿ä
- Logical Volume Manager
- OSF Product – HP-UX 9.x ºÎÅÍ O/S ¿¡ bundle µÇ¾î ÀÖ´Ù.
- Disk °ü¸®¸¦ À§ÇÑ kernel¿¡ ±âº» ³»ÀåµÈ sub-systemÀÌ´Ù.
- LVMÀº volume groupÀ̶ó´Â diskÀÇ ÁýÇÕÀ» ¸¸µé°í volume group ³»¿¡
°ø°£À» ³í¸®Àû volume(lvol)À¸·Î ºÐÇÒÇÏ¿© °¢°¢ÀÇ partitionÀ» ±¸¼ºÇÒ ¼ö
ÀÖ´Ù.
5.3 LVM ±¸¼º ¿ä¼Ò
n Physical Volume
- ÀÇ¹Ì : LVM¿¡ ÀÇÇؼ °ü¸®µÇ´Â ¹°¸®ÀûÀÎ µð½ºÅ©. Áï ÀÏ¹Ý ¹°¸®ÀûÀÎ
µð½ºÅ©¿¡LVM µ¥ÀÌÅÍ ±¸Á¶°¡ »ý¼ºµÈ µð½ºÅ©.
- Device file
(¿¹) /dev/rdsk/c0t6d0 character device file
/dev/dsk/c0t6d0 block device file
- »ý¼º ¹æ¹ý
# pvcreate –f /dev/rdsk/c0t6d0
n Volume Group
- ÀÇ¹Ì : ÇÑ °³ ÀÌ»óÀÇ physical volumeÀ¸·Î ±¸¼ºµÈ disk pool
- Device file
(¿¹) /dev/vg01 vg01°ú °ü·ÃµÈdevice fileÀ» °¡Áö°í ÀÖ´Â directory
/dev/vg01/group ¡°vg01¡± volume group device file
- »ý¼º ¹æ¹ý
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000[CODE][/CODE]
# vgcreate /dev/vg01 /dev/dsk/c0t6d0
n Logical Volume
- ÀÇ¹Ì : °¢°¢ÀÇ filesystemÀ» ±¸¼ºÇÏ´Â ´ÜÀ§·Î¼ partition °ú °°´Ù.
ƯÁ¤ÇÑ volume group ¾È¿¡¼ »ý¼º°¡´É ÇÏ´Ù.
volume groupÀÌ ´Ù¼öÀÇ disk·Î ±¸¼ºµÈ´Ù¸é, lvolÀº ÇÑ °³ÀÇ disk
¹üÀ§¸¦ ³Ñ¾î ¼³Á¤µÉ ¼ö ÀÖ´Ù.
- Device file
(¿¹) /dev/vg01/lvol1 block device file
/dev/vg01/rlvol1 character device file
- »ý¼º ¹æ¹ý
# lvcreate –L 1024 /dev/vg01
©£ Å©±â°¡ 1024 MBÀÎ logical volumeÀ» »ý¼º
n LVM Table
- ÀÇ¹Ì : ¸ðµç LVM Á¤º¸¸¦ °¡Áö°í ÀÖ°í, LVM ±¸¼º ½Ã ÀÚµ¿À¸·Î »ý¼º ¹×
update µÈ´Ù. ½Ã½ºÅÛ ºÎÆà ½Ã ÂüÁ¶µÇ¾î ÇØ´ç volume groupÀ»
È°¼ºÈ ½ÃŲ´Ù.
- À§Ä¡ : /etc/lvmtab
# strings /etc/lvmtab
©£ ÇöÀç LVM Á¤º¸¸¦ display ÇÑ´Ù.
# mv /etc/lvmtab /etc/lvmtab.org
# vgscan –v
©£ ±âÁ¸ LVM Á¤º¸¸¦ ´Ù¸¥ À̸§À¸·Î ÀúÀå ÈÄ , ÇöÀç LVM Á¤º¸¸¦
Àоî /etc/lvmtab ÆÄÀÏÀ» »õ·Î »ý¼º
Volume group »ý¼º ¿¹Á¦
¨ç # ioscan –fnkC disk
©£ physical volume À¸·Î ±¸¼ºÇÒ diskÀÇ device fileÀ» È®ÀÎ
¨è # pvcreate /dev/rdsk/c2t2d0
©£ physical volumeÀ¸·Î ±¸¼º
¨é # mkdir /dev/vg01
©£ volume group ÀÇ device fileÀÌ ÀúÀå µÉ directory »ý¼º
¨ê # mknod /dev/vg01/group c 64 0x010000
©£ volume group device file »ý¼º
¨ë # vgcreate /dev/vg01 /dev/dsk/c2t2d0
©£ ÇϳªÀÇ disk¸¦ volume groupÀ¸·Î ±¸¼º
¨ì # lvcreate –L 500 /dev/vg01
©£ volume group vg01¿¡ Å©±â°¡ 500MBÀÎ logical volume ±¸¼º
©£ logical volume À̸§Àº ±âº»À¸·Î lvol1(¸¸µé¾îÁø ¼ø¼¿¡ µû¶ó)À¸·Î »ý¼º
¨í # newfs –F vxfs /dev/vg01/rlvol1
©£ logical volume lvol1À» vxfs typeÀÎ File systemÀ¸·Î ¸¸µê
¨î # mount /dev/vg01/lvol1 /data1
©£ ƯÁ¤ directory¿¡ mount ½ÃŲ´Ù
|