|
2. Disk Management
2.1. Disk Device Name
½Ã½ºÅÛ¿¡ ÀÖ´Â disk device¸¦ °ü¸®Çϱâ À§Çؼ´Â, Hardware¿Í ÇØ´ç device naming convention°ú Ä£¼÷ÇØÁüÀ¸·Î¼
ÁöÁ¤/ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù. Disk device¿Í PartitionÀº logical device nameÀ¸·Î ÂüÁ¶µÇ¸ç,
¡¤disk¸¦ ´Ù¸¥ ½Ã½ºÅÛÀ» ¿Å±æ ¶§.
¡¤½Ã½ºÅÛ¿¡ »õ·Î¿î disk Ãß°¡½Ã.
¡¤local disk¿¡ ÀÖ´Â File SystemÀ» Mount ¶Ç´Â AccessÇÒ ¶§
¡¤local file system Backup½Ã ¿¡ ÀÌ¿ëµÈ´Ù.
2.1.1 Disk Device Interface
SunÀº ¾Æ·¡¿Í °°Àº disk deviceÀÇ Interface¸¦ Áö¿øÇÑ´Ù.
¡¤Small Computer System Interface(SCSI)
¡¤Intelligent Peripheral Interface(IPI)
¡¤Xylogics(451¶Ç´Â 7053) controller
À§ÀÇ Interface³ª Controller´Â SUN¿¡ ¿¬°áµÈ Disk, Tape. CD-ROM Device¿Í Åë½ÅÇϴµ¥ »ç¿ëµÇ¸ç
CD-ROM DeviceÁ¢¼Ó½Ã¿¡´Â SCSI Interface¸¸ÀÌ °¡´ÉÇÏ´Ù.
SCSI Device´Â Controller°¡ ºÎÂøµÇ¾î ÀÖÀ¸¸ç SBUS³ª VME bus¿¡ ¿¬°áµÈ SCSI host adapter¿¡
¿¬°áµÈ´Ù. IPI Device´Â VME Bus¿¡ ¿¬°áµÈ IPI Controller¿¡ ¿¬°áµÈ´Ù. Storage Moddle Device(SMD)¿Í
Enhanced Storage Module Device(ESMD) Disk´Â VME Bus¿¡ ¿¬°áµÈ Xyligics Controller¿¡
¿¬°áµÈ´Ù. Bus´Â Hardware device°£ÀÇ channel¶Ç´Â pathwayÀÌ´Ù. Format Utility³ª dmesg¸í·É¾î,
prtconf¸í·É¾î·Î, ½Ã½ºÅÛ¿¡ ¿¬°áµÈ disk device ¿Í ÇØ´ç interfaceÀ» ¾Ë ¼ö ÀÖ´Ù.
¿¹:
# format
searching for disks...done
AVAILABLE DISK SELECTIONS: 0.C0T3D0
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400
000/esp@,f80000/sd@3,0
Specity disk (enter its number): À§ÀÇ formatÀÇ ¿¹´Â SBUS interface (sbus@f...)¿Í
SCSI DMA Controller (espdma@f)¿¡ Á¢¼ÓµÈ SCSI host adapter(esp@...)¿¡ ¿¬°áµÈ SCSI
disk device(sd@...)¸¦ º¸¿©ÁØ´Ù.
IPI Xylogic disk device´Â ip¿Í xd·Î ½ÃÀÛÇÏ´Â id¸¦ °®´Â´Ù. Format ¸í·ÉÀÇ Output´Â Logical
Device¿Í Physical Device NameÀÌ DisplayµÈ´Ù.
´ÙÀ½ page¿¡¼´Â DiskÀÇ ³í¸®Àû À̸§¿¡ °üÇØ ±â¼úÇÏ°Ú´Ù.
2.1.2 Logical Disk Device Names
Logical Disk Device NamesÀº System Administrator³ª User°¡ Disk³ª File System¿¡
°ü°èµÈ ¸í·ÉÀ» ÀÌ¿ëÇÒ ¶§ »ç¿ëµÈ´Ù.
Bus-Oriented
Controllers Sun systemÀº Bus Oriented Controller(SCSI¿Í IPI)¿¡ ¿¬°áµÈ Disk DeviceÀÇ
Logical Device NameÀ» ±â¼úÇÒ ¶§ ¾Æ·¡ÀÇ ÇüÅ·Π»ç¿ëÇÑ´Ù. Logical Device Name Àº /dev directory¿¡
ÀÖÀ¸¸ç, /devices directoryÀÇ ÇØ´ç Physical Device Name¿¡ Symbolic LinkµÇ¾î ÀÖ´Ù.
Controller Number
Controller ¶Ç´Â Interface number´Â °¢°¢ÀÇ Interface card¿¡ ¼øÂ÷ÀûÀ¸·Î ÀÚµ¿ ÇÒ´çµÇ¾î c0,
c1, ¶Ç´Â c3µîÀ¸·Î ³ªÅ¸³½´Ù. System ³»ÀÇ SCSI Interface °¡ ³»ÀåµÇ¾î ÀÖÀ¸¸é, OS°¡ ÇØ´ç card dp
0À» ÇÒ´ç ÇÏ¿© ³»Àå SCSI card¿¡ ¿¬°áµÈ ¸ðµç disk device°¡ c0·Î ½ÃÀ۵Ǵ device address¸¦ °®´Â´Ù.
Controller Number c1Àº µÎ ¹ø° SCSI host adapter ¶Ç´Â esp1À» ³ªÅ¸³½´Ù.
Target Address
t0, t1, t3 °°Àº target address´Â ¼±ÅÃµÈ °¢ deviceÀÇ switch setting °ú ÀÏÄ¡ÇÑ´Ù. ¿ÜÀåÇü
disk drive´Â real panel¿¡ ÀÖ´Â address¸¦ ÀǹÌÇÑ´Ù. ³»Àå disk drive´Â »çÀü¿¡ 3À¸·Î ÁöÁ¤µÈ jumper
setÀ» °®°í ÀÖÀ¸¸ç µÎ ¹ø° ³»Àå disk drive´Â ÀϹÝÀûÀ¸·Î 1·Î setµÇ¾î ÀÖ´Ù.
Disk Number Disk
Number´Â SCSI Device³ª IPI ¾î¶²°æ¿ì¿¡µµ d0·Î set µÇ¾îÀÖ´Ù.
Slice(Partition) Number
Slice Number´Â 0~7±îÁöÀ̸ç Àüü Disk´Â Slice 2¹øÀ¸·Î ³ªÅ¸³´Ù. Disk Device ´Â Logical
Device Name¿¡ ÀÇÇØ AccessµÇ¸ç ±× À̸§¿¡´Â Slice Number°¡ Æ÷ÇԵǾî¾ß ÇÑ´Ù. Controller/Disk/Target¸¸À¸·Î´Â
Disk¸¦ AccessÇÒ ¼ö ¾ø´Ù. /dev/dsk directory¿¡´Â SystemÀÇ Device¿Í PartitionµéÀÇ Logical
Device NameµéÀÌ ÀÖ´Ù.
Direct Controllers
Xylogics 451 ¶Ç´Â 7053°°Àº direct(¶Ç´Â non-bus oriented)controller¿¡ ¿¬°áµÈ disk´Â
logical device name¿¡ .arget number°¡ µé¾îÀÖÁö ¾Ê´Ù.
´ÙÀ½ Page¿¡¼´Â µð½ºÅ©ÀÇ ¹°¸®ÀûÀÎ À̸§°ú AddressÀÇ Setting¿¡ °üÇØ ±â¼úÇÏ°Ú´Ù. ±×·³ ´ÙÀ½ Page¸¦ º¸µµ·Ï ÇÏÀÚ.
2.1.3 Physical Disk Device Names
Physical device nameÀº ½Ã½ºÅÛ¿¡ ¿¬°áµÈ ¸ðµç device¸¦ Ç¥ÇöÇϸç, ÇØ´ç device fileÀº /devices
directory¿¡ ÀúÀåµÈ´Ù.
SCSI Device
SCSI host adapterÀÇ Physical NameÀº esp@0ÀÌ´Ù. °¢°¢ÀÇ SCSI host adapter´Â 7°³ÀÇ
Device¸¦ Áö¿øÇϸç, °¢°¢ÀÌ ´Ù¸¥ Target Address¸¦ °®´Â´Ù.
Xylogics Device
¾Æ·¡ÀÇ ¿¹´Â ù¹ø° Xylogics Disk(disk unit 0)À» ³ªÅ¸³»¸ç ù¹øÀç ¿ÜºÎ Xylogics Controller¿¡
¿¬°áµÈ °ÍÀÌ´Ù. /devices/vme/xdc@6d,ee80/xd@0,0:a ¿©±â¼ °¢°¢Àº VME bus, Xylogics Controller,
Xylogics Disk Unit Number, Patition or Slice¸¦ (¼ø¼´ë·Î) °¡¸£Å²´Ù. ¡¡
2.1.4 Setting Disk Drive Address
Çϳª ÀÌ»óÀÇ Disk¸¦ ¿¬°áÇÏ·Á¸é, °¢ DiskÀÇ SCSI Target Address¸¦ ¼·Î ´Ù¸£°Ô SettingÇØ¾ß ÇÑ´Ù.
Extennal Adderss¿Í Internal Jumper SettingÀ¸·Î Disk Drive ÀÇ À¯ÀÏÇÑ Target Address¸¦
Á¤ÇÑ´Ù.
Logical Controller Number´Â OS¿¡ ÀÇÇÏ¿© ÀÚµ¿À¸·Î ÇÒ´çµÈ´Ù. »õ·Î¿î Disk Device³ª SCSI Device¸¦
Ãß°¡ÇÒ ¶§¿¡´Â ¹Ýµå½Ã ±âÁ¸ÀÇ Target Number¿Í °ãÄ¡Áö ¾Êµµ·Ï ÇÏ¿©¾ß ÇÑ´Ù. probe-scsi, probe-scsi-all
°ú probe-ipi¸í·ÉÀº PROM monitor mode(ok prompt) »ó¿¡¼ Disk Device¿¡¼ SetµÇ¾îÀÖ´Â
Target Device Number¸¦ Display ÇÑ´Ù. ÃÖ´ë 7°³ÀÇ Device°¡ °¢°¢ÀÇ SCSI host adapter¿¡
daisy-chainÀ¸·Î ¿¬°áµÇ¸ç IPI Controller¿¡´Â 8°³ÀÇ Device°¡ ¿¬°áµÇ´Âµ¥, °¢ SCSI Device¿Í
IPI disk´Â °íÀ¯ÀÇ Target Address¸¦ °®´Â´Ù.
±×·³ ´ÙÀ½¿¡´Â Disk¸¦ »õ·ÎÀÌ Ãß°¡ÇÏ´Â ¹ý¿¡ ´ëÇØ ¾Ë¾Æº¸ÀÚ. Áö±Ý±îÁöÀÇ ³»¿ëÀÌ Disk¿¡ ´ëÇÑ ±âÃÊ°¡ µÇ¾ú´ÂÁö ¸ð¸£°ÚÁö¸¸ ´ÙÀ½
Page ÀÇ ³»¿ëÀº ½ÇÁúÀûÀÎ ¸é¿¡¼ È°¿ëµÇ´Â ºÎºÐÀÌ´Ù. ½ÇÁúÀûÀ̶ó°í´Â ÇÏÁö¸¸ ÀÌ PageÀÇ ³»¿ë°ú´Â À¯»çÇÑ ³»¿ëÀÌ ¸¹À» °ÍÀÌ´Ù.
2.2 »õ·Î¿î DiskÀÇ Ãß°¡
½Ã½ºÅÛ¿¡ »õ·Î¿î disk¸¦ Ãß°¡Çϴµ¥¿¡´Â 5°¡ÁöÀÇ ÁÖ¿ä stepÀÌ ÀÖ´Ù.
1. Switch setting, cable¿¬°á µîÀÇ Hardware setup
2. »õ·Î¿î disk¸¦ ÀνÄÇϵµ·Ï SystemÀ» Configuring
3. Disk Partitioning
4. Partition¿¡ ´ëÇÑ File System»ý¼º
5. PartitionÁ¤º¸¸¦ File System Table File(/etc/vfstab)¿¡ Ãß°¡
2.1 »õ·Î¿î Disk¸¦ ÀνÄÇϵµ·Ï ½Ã½ºÅÛ À籸¼º
1. /reconfigure fileÀ» »ý¼ºÇÏ¿© reboot½Ã À籸¼ºÀ» ¼öÇàÇϵµ·Ï ÇÑ´Ù.
# touch /reconfigure
2. SystemÀ» Halt½ÃŲ´Ù.
3. Àü¿øÀ» ²ö´Ù.
4. »õ·Î¿î Disk¸¦ ¿¬°áÇÑ´Ù.
5. Àü¿øÀ» ¿Ã¸°´Ù. À籸¼º boot process´Â »õ·Î¿î disk¿¡ ´ëÇÑ Physical/logical deviceÇ׸ñÀ»
ÀÚµ¿À¸·Î »ý¼ºÇÑ´Ù. ½Ã½ºÅÛÀÌ disk¸¦ ÀνÄÇϵµ·Ï configurationµÈ ÈÄ disk partition setupÀÛ¾÷À» ÇÑ´Ù.
2.2 Disk ±¸Á¶ ÀÌÇØ
DiskÀÇ PhysicalÇÑ »ç¾çÀº ¾Æ·¡¿Í °°´Ù.
¡¤Disk´Â ¿©·¯°³ÀÇ ÆÇ(platter)À¸·Î ±¸¼ºµÇ¾î ¾ç¸éÀ» Read/WriteÇÑ´Ù.
¡¤ÆÇ(platter)´Â SpindleÁÖÀ§·Î ȸÀüÇÑ´Ù.
¡¤Read/Write Head´Â Head Actuator Arm¿¡ ÀÇÇØ Unitº°·Î À̵¿ÇÑ´Ù.
Solaris 2.x File SystemÀº Disk I/O ¼º´É Çâ»óÀ» À§ÇØ Low-Level Formatting Parameter¸¦
ÀÌ¿ëÇÑ´Ù.
¡¤FileÀÇ BlockÀº 512 Byte·Î µÈ Sector¿¡ ÀúÀåµÈ´Ù.
¡¤Sector´Â TrackÀ» ±¸¼ºÇϸç ÇÑ ¹øÀÇ Disk ÀüÁø½ÃÀÇ ÇöÀ§Ä¡¿¡¼ ÁÖ¾îÁø Head¿¡ Read ¶Ç´Â WriteÇÑ´Ù.
¡¤ÁÖ¾îÁø À§Ä¡¿¡¼ ¸ðµç Head°¡ Á¦°øÇÏ´Â TrackµéÀÇ ÇÕÀ» Cylinder¶ó ÇÑ´Ù.
¡¤Disk´Â °è¼Ó ȸÀüÇÏ°í Read/Write Head°¡ ´ÜÀ§´ÜÀ§·Î ¿òÁ÷À̱⠶§¹®¿¡, ÇϳªÀÇ Cylinder¿¡ Read/WriteÇÏ´Â
°æ¿ì¿¡ °¡Àå È¿°úÀûÀ¸·Î SeekingÀÌ ¹ß»ýÇÑ´Ù.
¡¤PartitionÀº Cylinder °æ°è¿¡¼ ½ÃÀ۵ȴÙ. ÀÌ Àå¿¡¼´Â Disk¸¦ ÀνÄÇϵµ·Ï ÇÏ´Â ½Ã½ºÅÛÀÇ Àç ±¸¼º°ú DiskÀÇ
±¸Á¶¿¡ ´ëÇØ ±â¼úÀ» ÇÏ¿´´Ù.
´ÙÀ½ Page¿¡¼´Â Partition°ú LabelÀ» ÀÌÇØÇÏ°í Format À¯Æ¿¸®Æ¼¸¦ È°¿ëÇÏ´Â ¹ýÀ» ±â¼úÇÏ°Ú´Ù.
2.3 Disk Partition°ú LabelÀÇ ÀÌÇØ
PartitionÀº µð½ºÅ©ÀÇ ½ÃÀÛÁ¡¿¡¼ºÎÅÍ Offset(°Å¸®)°ú Size¿¡ ÀÇÇÏ¿© Á¤ÀǵȴÙ. µð½ºÅ© PartitionÀÇ Offset°ú
Size´Â Partition Table¿¡ Á¤ÀÇÇØ µÐ´Ù. Disk's Volume Table Of Contents(VTOC)À̶ó
ºÒ¸®¿ì´Â Disk ÀÇ LableÀº ¾Æ·¡ ³»¿ëµéÀ» Æ÷ÇÔÇÏ°í ÀÖ´Ù.
¡¤µð½ºÅ©ÀÇ Partition Table
¡¤µð½ºÅ© µð¹ÙÀ̽º¸¦ ±¸º°ÇÏ´Â Volume Name
¡¤°¢°¢ÀÇ PartitionÀÇ Ç¥ÁØ Mount PointÀÎ Partition Tag
¡¤°¢°¢ÀÇ PartitionÀÌ WritableÀÎÁö MountableÀÎÁö¸¦ °áÁ¤ÇÏ´Â Partition Flag
2.4 Format Utility È°¿ë
Sun Install Utility´Â ¼±ÅÃÇÑ Software¸¦ InstallÇϱâ À§ÇØ Disk PartitionÀ» ½Ç½ÃÇÑ´Ù.
Format Utility´Â Install ÈÄ¿¡ Disk Ãß°¡³ª, RepartitionÀ» ¿øÇҽà Disk PartitionÀ»
½Ç½ÃÇÑ´Ù. ÀÌ°ÍÀº Swap PartitionÀ» Ãß°¡ÇÏ´Â °Íµµ Æ÷ÇԵȴÙ. Format Utility´Â CD-ROMÀ̳ª Shell·Î
ºÎÅÍ ¿î¿µµÇ¾îÁö´Â, Disk À¯Áö º¸¼ö¿ë ToolÀ̸ç, /(root)³ª /usr À» Æ÷ÇÔÇÏ°í ÀÖ´Â File SystemÀ̳ª Swap
PartitionÀ» ¼öÁ¤ÇÒ ¶§µµ »ç¿ëµÇ¾îÁø´Ù.
Disk Repartition±âº»ÀÛ¾÷
¡¤disk repartition
¡¤»õ·Î¿î Disk Label ºÎ¿©
¡¤»õ·Î¿î PartitionÀ» À§ÇÑ File System »ý¼º(ÀÌ ÀÛ¾÷Àº Swap PartitionÃß°¡½Ã´Â »ý·«°¡´É)
1. Shell»ó¿¡¼ formatÀ» ÀÔ·ÂÇÑ´Ù.
# format
Format Utility°¡ ½ÇÇàµÉ ¶§, »ç¿ë°¡´ÉÇÑ DiskÀÇ Physical Name, Physical Parameter,
Marketing name, Logical nameÀÌ ³ªÅ¸³´Ù. Marketing nameÀº SUNnnnnÀ¸·Î ½ÃÀ۵Ǹç, ¿¹¸¦µé¾î
SUN00424ÀÌ´Ù.ÇöÀç ½Ã½ºÅÛ¿¡ ÀÇÇØ ÀνĵǾîÁö´Â diskÁß Çϳª¸¦ ¼±ÅÃÇÑ´Ù.
2. ÇϳªÀÇ disk¸¦ ¼±ÅÃÇϱâ À§Çؼ´Â ¼ýÀÚ¸¦ ÀÔ·ÂÇÑ´Ù.
¿¹:
# format
Searching for disks...done
AVAILABLE DISK CELECTIONS:
0. c0t3d0
/iommu@f,e0000000/sbu@f,e0001000/espdma@4,400
000/esp@f,800000/ds@3.1.c0t0d 0 /iommu@f,e0000000/sbu@f,e0001000/espdma@f,400
000/esp@f,800000/sd@0,Specity
disk (enter its number): 1
ÀÌ Àå¿¡¼´Â Partition°ú Label¿¡ ´ëÇØ ±â¼úÀ» Çß´Ù. ´ÙÀ½ Page¿¡¼´Â FormatÀÇ ÁÖ ¸Þ´º¿Í Partition
Menu¿¡ ´ëÇؼ ±â¼úÇÏ°Ú´Ù.
2.5 Format Main Menu
ÇϳªÀÇ Disk¸¦ ¼±Åà ÈÄ¿¡, Format Utility´Â Main Menu¸¦ DisplayÇÑ´Ù.
selecting c0t0d0
[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
verity -read and display labels
save -save new disk/partition definitions
liquiry -show vendor, product anf revision
volname -set 8-character volume name
quit
format>partition
À§¿Í °°Àº ¸Þ´º°¡ ¶ß°Ô µÈ´Ù.
2.6 FormatÀÇ partition Menu
Partition TableÀ» ¼öÁ¤ ¹× DisplayÇϴµ¥ »ç¿ëÇÑ´Ù.
1. ÀÌ ¸Þ´º¸¦ displayÇϱâ À§ÇØ, partitionÀ» ÀÔ·ÂÇÑ´Ù.
format>partition
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
quit
partition>
ÀÌ ¸Þ´º´Â ¾Æ·¡ÀÇ ±â´ÉµéÀ» ¼öÇàÇÑ´Ù.
0-7 8°³ÀÇ partition±îÁö size ¹× offsetÁ¤ÀÇ
select predefined partition table¼±ÅÃ(¿©·¯°³ÀÇ predefined tableÀº Sun ¿¡¼ Á¦°øÇÏ´Â
disk ÇüÅ ¹× ±âŸ Ãß°¡ÇÑ disk¸¦ Áö¿øÇÔ)
modify predefined partition table¼öÁ¤
name ÇöÀç partition table À̸§
print ÇöÀç partition table display
label Disk LabelÀ» ÇöÀç table¿¡ ±â·Ï
ÀÌ Àå¿¡¼´Â Format ¸Þ´º¿Í Partition ¸Þ´º¿¡ ´ëÇؼ ±â¼úÀ» Á¶±ÝÀ̳ª¸¶ ±â¼úÀ» Çß´Ù. ´ÙÀ½ Page¿¡¼´Â Partition
TableÀÇ °Ë»ç¿Í »õ µð½ºÅ©ÀÇ Á¾·ù¿¡ ´ëÇؼ ±â¼úÇÏ°Ú´Ù.
2.7 ÀúÀåµÈ Partition TablesÀÇ °Ë»ç
Partition TableÀº ¿©·¯ °¡Áö ´Ù¸¥ ÇüÅ·ΠÁ¸ÀçÇÑ´Ù.
¡¤¸ðµç formatµÈ disk´Â partition tableÀ» º¸À¯ ¡¤predefined partition tableÀº /etc/format.dat
file·Î ÀúÀåµÇ¸ç, format¿¡ ÀÇÇØ È£ÃâµÈ´Ù.
¡¤format¿¡ ¿¡¼ disk¸¦ ¼±ÅÃÇÒ ½Ã, partition tableÀº disk labelÀ» ÇöÀçÀÇ label·Î ±â·ÏÇÑ´Ù.
ÇöÀçÀÇ labelÀº ¸Þ¸ð¸® ¾È¿¡ ÀÖ´Â labelÀÌ´Ù. predefined label·Î ¼±ÅÃÇÒ ¼öµµ ÀÖ´Ù.
ÇöÀçÀÇ labelÀº ¼öÁ¤µÉ ¼ö ÀÖÀ¸¸ç:
¡¤partition menu¿¡¼ label¸í·É¾î·Î disk·Î labelÀ» ±â·ÏÇÒ ¼ö ÀÖ´Ù.
¡¤partition menu¿¡¼ name ¸í·É¾î·Î À̸§À» Áþ°í, predefined table¿¡ Ãß°¡Çϸç, format utility¿¡¼
saveÇÑ´Ù. ¡¡
2.8 New DiskÀÇ Á¾·ù
Disk Ãß°¡½Ã´Â °ø±Þȸ»çÀÇ disk ÇüÅ¿¡ µû¶ó ¼·Î ´Ù¸¥ Ãë±ÞÀÌ ¿ä±¸µÈ´Ù.
¡¤sun¿¡¼ ±¸ÀԵǴ preformat µÈ disk´Â /etc/format.dat¿¡ predefined partition table
¹× disk labelÀ» °¡Áö°í ÀÖ´Ù.
¡¤sunÀ̳ª ´Ù¸¥ Vendor¿¡¼ ±¸ÀÔµÈ »õ·Î¿î Disk´Â ¶ÇÇÑ /etc/format.dat ÆÄÀÏ¿¡ ¿©·¯ °³ÀÇ Defined
Partition TableÀ» °¡Áö°í ÀÖ°í, PreformatÀÌ µÇ¾î Disk LabelÀ» °¡Áö´Â °æ¿ì¿Í ±×·¸Áö ¾ÊÀº °Íµµ ÀÖÀ»
¼ö ÀÖ´Ù.
¡¤Sun¿¡¼ Áö¿øÇÏÁö ¾Ê´Â Disk´Â /etc/format.dat File¿¡ Predefined Partition TableÀÌ
¾ø´Ù. ÀÌ Disk´Â Disk »ç¾ç¿¡ ´ëÇÑ Á¤º¸°¡ ÇÊ¿äÇÏ´Ù. ÀÌ·¯ÇÑ Disk´Â ¶ÇÇÑ Preformat µÇ¾î Disk LabelÀ»
°¡Áø °Í°ú ±×·¸Áö ¾ÊÀº °Íµµ ÀÖ´Ù. À̷νá Áö·çÇÑ µð½ºÅ©¿¡ ´ëÇÑ ¾ê±â°¡ Á¶±Ý ³¡ÀÌ ³µ´Ù. ´ÙÀ½ PageºÎÅÍ´Â ±â´ë¸¦ Çصµ ÁÁÀ»
°ÍÀÌ´Ù. ¡¡
2.9 Partition Á¤º¸Á¶È¸
Print¼±ÅÃÀº ÇöÀç Partition tableÀ» º¸¿©ÁØ´Ù.
1. ÇöÀç Partition tableÀ» º¸±âÀ§ÇÏ¿©, print¸¦ ÀÔ·ÂÇÑ´Ù.
partition> print
Current partition table (SUN0424);
Part Tag Flag Cylinders Size Blocks
0 root wm 0-45 16.17MB (46/0/0)
1 swap wu 46-136 31.99MB (91/0/0)
2 backup wu 0-1150 404.65MB (1151/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 0 0 (1014/0/0)
6 usr wm 137-1150 356.48MB (0/0/0)
7 unassigned wm 0 0 (0/0/0) partition>
-disk°¡ volume nameÀ» °¡Áö°í ÀÖ´Ù¸é, tableÀÇ Ã¹¹ø° line¿¡ ÀÖ´Â volume ´Ü¾îµÚ¿¡ ³ªÅ¸³´Ù.
-Partition tableÀÇ À̸§Àº tableµÎ¹ø° lineÀÇ °ýÈ£( )¾È¿¡ ³ªÅ¸³´Ù.
-tableÀÇ °¢ columnÀÇ Àǹ̴ ´ÙÀ½°ú °°´Ù.
Part PartitionÀÇ ¹øÈ£ Tag Partition tag
Flag Partition flag
Cylinder Patition¿¡ ÀÇÇØ Ã¤¿öÁø cylinderÀÇ ¹üÀ§
Size PartitionÀÇ Å©±â(MB)
Blocks PartitionÀÇ Å©±â, cylinders/tracks/sectors
Partition Table³»¿ë PartitionÀº ¿¬¼ÓÀûÀ¸·Î ÀÌ·ç¾î Á®¾ß ÇÑ´Ù. ù¹ø° PartitionÀº cylinder
0ºÎÅÍ ½ÃÀ۵Ǿî¾ß ÇÑ´Ù. µÎ¹ø° PartitionÀº ù¹ø° PatitionµÚÀÌ¾î ½ÃÀ۵ȴÙ.
Part Tag Flag Cylinders Size Blocks
0 root wm 0-45 16.17MB (46/0/0)
1 swap wu 46-136 31.99MB (91/0/0)
2 backup wu 0-1150 404.65MB (1151/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 0 0 (1014/0/0)
6 usr wm 137-1150 356.48MB (0/0/0)
7 unassigned wm 0 0 (0/0/0) ¡¡
´ÙÀ½ Page¿¡¼´Â PartitionÀÇ Å©±â¸¦ º¯°æÇÏ´Â °Í¿¡ ´ëÇØ ±â¼úÇÏ°Ú´Ù. ±×·³.....
2.10 Partition Sizeº¯°æ
¾Æ·¡´Â Partition Sizeº¯°æº¡¹ýÀ» ¼³¸íÇÑ´Ù.
1. Partition 0¿¡ 20 MB·Î size Áõ°¡½ÃÅ°´Â ¿¹¸¦ µé¾îº»´Ù.
Partition tableÀ» º¯°æÇϱâ À§ÇØ modify¸¦ ÀÔ·Â
Partition > modify
Select partitioning base:
0.current partition table(SUN0424)
1.All free Hog Choose Return or type 0 to change the current partition
table.
2. ÇöÀç Partition tableÀ» Ãâ·Â
Part Tag Flag Cylinders Size Blocks
0 root wm 0-45 16.17MB (46/0/0)
1 swap wu 46-136 31.99MB (91/0/0)
2 backup wu 0-1150 404.65MB (1151/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 0 0 (1014/0/0)
6 usr wm 137-1150 356.48MB (0/0/0)
7 unassigned wm 0 0 (0/0/0) ¡¡ ¡¡
3.»õ·Î¿î Partition tableÀ» »ý¼ºÇϱâ À§ÇØ yes³ª returnÀ» ÀÔ·ÂÇÑ´Ù.
Do you wish to continue creating a new patition
table based on above table[yes]? Return
4. Free Hog patitionÀ¸·Î partition 6¹ø ¼±ÅÃ
Free hog partition[6]? Return
free hog partitionÀº ´Ù¸¥ partitionÀÇ size°¡ º¯°æµÊ¿¡ µû¶ó È®Àå°ú Ãà¼ÒµÇ´Â disk¿µ¿ª accumnlator·Î¼
»ç¿ëµÈ´Ù.(ÀÌ ±â´ÉÀº SunInstall`s Unallocated space Meter¿Í À¯»çÇÏ´Ù)
5. Partition () size¿¡ 20MBÀÔ·Â, ´Ù¸¥ partition size´Â ÇöÀç size·Î ÀÔ·Â
Enter size of partition '0' [33120b, 46c, 16.17mb]: 20mb
Enter size of partition '1' [65520b, 91c, 31.99mb]: Return
Enter size of partition '0' [0b, 0c, 0.00mb]: Return
Enter size of partition '5' [0b, 0c, 0.00mb]: Return
Enter size of partition '7' [0b, 0c, 0.00mb]: Return ¡¡
2.10 Partition Sizeº¯°æ
6. ÀÚµ¿ÀûÀ¸·Î »õ·Î¿î Partition tableÀÌ displayµÇ¸ç, »õ·Î¿î partition size°¡ ¸Â´ÂÁö È®ÀÎ.
Part Tag Flag Cylinders Size Blocks
0 root wm 0-45 16.17MB (46/0/0)
1 swap wu 46-136 31.99MB (91/0/0)
2 backup wu 0-1150 404.65MB (1151/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 0 0 (1014/0/0)
6 usr wm 137-1150 356.48MB (0/0/0)
7 unassigned wm 0 0 (0/0/0)
Format utility´Â ´ÙÀ½¹ø cylinderÀÇ size¿¡ Mbyte´ÜÀ§·Î ¹Ý¿Ã¸² ÇÑ´Ù. modify optionÀ» »ç¿ëÇϸé
partition¿µ¿ªµé »çÀÌ¿¡ 'holes'ÀÌ ¾ø´Â ´Ù¸¥ partition¿µ¿ªÀÇ Ãʱâ cylinder¿µ¿ªÀ» ÀÚµ¿À¸·Î Á¶Á¤ÇØ ÁØ´Ù.
7. Partiton Table ÀÇ »ç¿ëÀ» È®ÀÎÇÑ´Ù.
Okay to make this the current partition table[yes]? Return
8. »õ·Î¿î partition tableÀ̸§À» ÀÔ·ÂÇÑ´Ù.
Enter table name (remember quotes): "c0t0d0.424"
Partition table À̸§Àº Ç×»ó diskÀ̸§°ú size¸¦ °¡Áö°í ÀÖ´Ù.
9. ¼öÁ¤µÈ tableÀ» disk·Î writeÇÑ´Ù.
Ready to label disk, continue? Yes
10. Partition menuÀ» exitÇÑ´Ù.
Patition > quit
main format menu°¡ ³ªÅ¸³´Ù.
11. format main menu¿¡¼ verity command·Î »õ·Î¿î disk labelÀ» °Ë»ç
format> verity
Primary label contents:
ascii name= cyl 1151 alt 2 hd 9 sec 80>
pcy1 = 2500
ncy1 = 1151
acy1 = 2
nhead = 9
nsect = 80
Part Tag Flag Cylinders Size Blocks
0 root wm 0-45 16.17MB (46/0/0)
1 swap wu 46-136 31.99MB (91/0/0)
2 backup wu 0-1150 404.65MB (1151/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 0 0 (1014/0/0)
6 usr wm 137-1150 356.48MB (0/0/0)
7 unassigned wm 0 0 (0/0/0)
Partition¿µ¿ª°Ë»ç Partition sizeÀÇ °¨¼ÒÇÑ ¿µ¿ª¸¸Å ÇöÀçÀÇ Partition°ú ´ÙÀ½¹ø partiton»çÀÌ¿¡
¾µ¸ð¾ø´Â ¿µ¿ªÀÌ ÀְԵȴÙ. Partition size¸¦ Á¶Á¤Çϱâ À§ÇØ 0-7 optionÀ» »ç¿ëÇÒ ½Ã, cylinderÀÇ ½ÃÀÛ°ú
³¡À» ¿¬¼ÓÀûÀ¸·Î ¸¸µé¾îÁà¾ß ÇÑ´Ù. À̷μ µð½ºÅ©ÀÇ Partition¿¡ °üÇÑ ºÎºÐÀº °ÅÀÇ ³¡ÀÌ ³µ´Ù.
´ÙÀ½ PageºÎÅÍ´Â Mount¿¡ °üÇØ ÇÒ °ÍÀÌ´Ù. Áö±Ýº¸´Ù ´õ Áß¿äÇÏ´Ï Àß º¸±â ¹Ù¶õ´Ù.
2.11 Mounting File Systems
Local ¹× ºÐ»êÆÄÀÏ ½Ã½ºÅÛ
´ëºÎºÐÀÇ °ü¸®ÀÚ´Â local(disk-based)ÆÄÀϽýºÅÛ°ú ¿ø°Ý(ºÐ»ê)ÆÄÀϽýºÅÛÀ¸·Î ÀÛ¾÷ÇÏ°Ô µÈ´Ù. ÀÌ ÀåÀº localÆÄÀϽýºÅÛ¿¡
´ëÇؼ¸¸ ¾ð±ÞÇÑ´Ù.
Local(disk-based)ÆÄÀϽýºÅÛ
À̵é ÆÄÀϽýºÅÛÀº disk³ª CD-ROM¶Ç´Â µð½ºÄÏó·³ ¹°¸®ÀûÀÎ ¹Ìµð¾î¿¡ ÀúÀåµÈ´Ù. ufs ±âº» diskÆÄÀϽýºÅÛÀº BSDÀÇ
fat fastÆÄÀϽýºÅÛ¿¡ ±âÃÊÇÑ´Ù. hsfs CD-ROMÆÄÀϽýºÅÛ(High sierraÆÄÀϽýºÅÛ) pcfs DOSµð½ºÄÏ dataÀÇ
read/write¸¦ Áö¿øÇÏ´Â file system
ºÐ»êÆÄÀÏ ½Ã½ºÅÛ
ºÐ»êÆÄÀϽýºÅÛÀº network¿¡ Á¢¼ÓµÈ ´Ù¸¥ ½Ã½ºÅÛÀÇ access¸¦ Áö¿øÇÑ´Ù.
nfs NetworkÆÄÀϽýºÅÛ
rfs Remote file½Ã½ºÅÛ
File SystemÀÇ Mount¿Í Unmount
MountingÀº ºÐ»êµÈ file systemÀ» ÇϳªÀÇ µð·ºÅ丮¿¡ ¸ðÀ¸´Â ÀÏ·ÃÀÇ °úÁ¤ÀÌ´Ù. ÀϹÝÀûÀ¸·Î mounting°ú unmountingÀº
½Ã½ºÅÛÀÌ startup ¹× shutdownµÉ ¶§ ÀÚµ¿ÀûÀ¸·Î ½ÇÇàµÈ´Ù. ½Ã½ºÅÛÀÇ °ü¸®ÀÚ°¡ ÆÄÀϽýºÅÛ mount¶Ç´Â unmountÀÇ
ÀÛ¾÷ÀÌ ÇÊ¿äÇÑ »óȲÀº ÀϹÝÀûÀÎ °æ¿ì´Â ¾Æ´ÏÁö¸¸ ÀÖÀ» ¼ö ÀÖ´Ù. ÀÌ·¯ÇÑ »óȲÀº backupÀ» Çϰųª, ÆÄÀϽýºÅÛ ºÒÀÏÄ¡¸¦ check,
repartitionÇÏ´Â °æ¿ì¸¦ Æ÷ÇÔÇÑ´Ù. Ãß°¡ÀûÀ¸·Î, disk reconfiguration Àº ¶§¶§·Î file systemÀÌ
system startup ¹× shutdown½Ã ÀÚµ¿ mount¸¦ À§ÇØ /etc/vfstabÀÇ º¯°æÀÌ ÇÊ¿äÇÏ´Ù.
»õ·Î¿î File systemÀÇ Mount Test
¾Õ¿¡¼ »ý¼ºÇÑ file systemÀ» mountÇÑ´Ù.
#mkdir /database
#mount /dev/dsk/c0t0d0s0/database
file systemÀ» unmountÇÏ¿© user°¡ access ºÒ°¡Çϵµ·Ï ÇÑ´Ù. ¾Æ·¡ÀÇ µÎ°¡Áö Áß Çϳª¸¦ »ç¿ëÇÑ´Ù.
-device special file system nameÀÌ¿ëÇÏ´Â ¹æ¹ý
# unmount /dev/dsk/c0t0d0s0
- /etc/vfstab file¿¡ ÁöÁ¤µÈ monut-pointÀÌ¿ëÇÏ´Â ¹æ¹ý
# unmount /database
À§¿¡¼¿Í °°ÀÌ ÆÄÀϽýºÅÛÀº mount¿Í unmount°¡ °¡´ÉÇѵ¥, ÀϹÝÀûÀ¸·Î ½Ã½ºÅÛ startupÀ̳ª shutdown½Ã¿¡ ÀÚµ¿À¸·Î
ÁøÇàµÈ´Ù.
Local File SystemÀÇ Mounting All
startupÀ̳ª shutdown½Ã¿¡ ¸ðµç local file system´Â ÇϳªÀÇ ¸í·ÉÀ¸·Î mount¶Ç´Â unmountµÈ´Ù
local file systemÀÇ mount all local file systemÀº systemÀÌ run level 2°¡ µÉ
¶§, Mountsys script¿¡ ÀÇÇØ mountµÈ´Ù. ÀÌ script¿¡¼ »ç¿ëÇÏ´Â ¸í·ÉÀº:
mountall -l (-l optionÀº local file systemÀ» ÀǹÌÇÑ´Ù)
mountall¸í·ÉÀº ¾î¶»°Ô ÀÛµ¿Çϴ°¡
mountall ¸í·ÉÀº Assembly instruction book¿¡ ÀÖ´Â "assembly required"ÁßÀÇ "attach
all screws."¿Í °°Àº stepÀÌ´Ù. stepÀÇ ¾îµò°¡¿¡ attachµÇ´Â screwµéÀÇ list°¡ ÀÖ´Ù. mountall¸í·É¿¡¼
ÀÌ Á¤º¸µéÀº /etc/vfstab fileÀÇ mount at book field¿¡¼ Á¦°øµÈ´Ù.
2.11 Mounting File Systems
/etc/vfstab File
ÀÌ fileÀº file system mount¸¦ À§ÇÑ defult settingÀ» Á¦°øÇÑ´Ù. fileÀÇ Çü½ÄÀº line´ç 7°³ÀÇ
field·Î ±¸¼ºµÈ record°¡ Á¸ÀçÇϸç dash(-)´Â fieldÀÇ value°¡ nullÀÓÀ» ÀǹÌÇÑ´Ù.
¾Æ·¡ÀÇ ¹öÆ°À» ´·¯ fileÀ» º¸ÀÚ.
fieldÀÇ Àǹ̴Â
device to mount local ufs file systemÀÇ logical(block)device name
device to fsck local ufs file systemÀÇ logical(block)device name
mount point local file resourceÀÇ default mount point
FS type local file resource¿¡ ´ëÇؼ´Â Ç×»ó "ufs"ÀÌ´Ù.
fsck pass ufs file systemÀº ÀÌ fieldÀÇ °ªÀÌ ¾ç¼öÀ̾î¾ß checkµÈ´Ù. dash (-)´Â checkÇÏÁö
¾ÊÀ»°ÍÀ» ÀǹÌÇÑ´Ù. °ªÀÌ 1ÀÌ¸é °¢°¢ÀÇ ufs file systemÀº ¼øÂ÷ÀûÀ¸·Î checkµÇ¸ç, 1º¸´Ù Å«°æ¿ì sck´Â ÃÖ´ëÀÇ
È¿À²À» º¼ ¼ö ÀÖµµ·Ï ¼·Î ´Ù¸¥ disk¿¡ ÀÖ´Â ´Ù¼öÀÇ ufs file systemÀ» º´·Ä·Î checkÇÑ´Ù.
mount at boot yes³ª no¸¦ Ç¥½ÃÇÏ¿© ½Ã½ºÅÛÀÌ run level 2°¡ µÇ°Å³ª, mountall ¸í·ÉÀÌ issue
µÇ¾úÀ» ¶§ file resource mountall ¿©ºÎ¸¦ °áÁ¤ÇÑ´Ù.
/(root>¿Í /usrÀº ÀÌ ±â´É°ú °ü°è¾øÀÌ /etc/rcs.d/S30rootusr.sh script¿¡ Á¤ÀǵǾî mountµÊÀ¸·Î
mount-at-boot field´Â noÀÌ´Ù.
mount option comma·Î ±¸ºÐµÇ´Â mount option list
mountÀ§Ä¡¸¦ Á¤ÇÏ´Â field
mountall¸í·ÉÀº boot½Ã¿¡ mountµÇ¾î¾ß ÇÒ Àå¼Ò¸¦ Á¤ÇÏ´Â entry¸¦ ÀÌ file¿¡¼ »ç¿ë ÇÑ´Ù. Ưº°È÷ mount-at-boot
field¿¡¼ file system typeÀ» °áÁ¤ÇÑ´Ù. ufs(local) file systemÀÇ 1¹ø°, 3¹ø°, field¿¡
À¯ÀÇÇÑ´Ù.
#device mount
#to mount point
/dev/dsk/c0t3d0s0 /
/dev/dsk/c0t3d0s6 /usr
/dev/dsk/c0t3d0s5 /opt
/dev/dsk/c0t3d0s0 /database
ÀÌ field´Â mountµÉ file system°ú mount point¸¦ listÇÑ´Ù.
MountµÉ File SystemÀÇ Á¤º¸Á¶È¸
mount´Â ÀϹÝÀûÀ¸·Î ÀÚµ¿¼öÇàµÇ±â¶§¹®¿¡, ÁÖ¾îÁø ¶§¿¡ ¾î¶² file systemÀ» mountÇÒ °ÍÀΰ¡¸¦ Á¤ÇÏ´Â °Íµµ ÇÊ¿äÇÏ´Ù.
O/S°¡ mount½ÃŲ file systemÀº argument¾øÀÌ mount¸í·ÉÀ¸·Î È®ÀÎÇÒ ¼ö ÀÖ´Ù.
|
|