BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: ¹é [HP-UX]¹é¾÷&¸®Ä¿¹ö¸® Á¶È¸¼ö: 9439


Backup/Restore
9.1 Backup °³¿ä
- O/S Configuration º¯°æ ½Ã ¹Ýµå½Ã O/S ¹é¾÷ ¼öÇà

- Root file system°ú data file system À» º°µµÀÇ tapeÀ¸·Î ¹é¾÷

- °¡´ÉÇÑ file system º°·Î ¹é¾÷ ¼öÇà

9.2 tar
n ¹é¾÷

¢¹ O/S µ¥ÀÌÅÍ ¹é¾÷

¨ç DB & Application shutdown ½ÃÅ´

¨è Single-user mode·Î Àüȯ

# shutdown 0

¨é O/S °ü·Ã directory¸¸ mount½ÃÅ´, ¡°bdf¡± ·Î È®ÀÎ

¨ê # cd / (root directory·Î À̵¿)

¨ë tapeÀ» µå¶óÀ̺꿡 ³Ö´Â´Ù.

¨ì # tar cvf /dev/rmt/0m ./

¢¹ ÀÏ¹Ý µ¥ÀÌÅÍ ¹é¾÷

ÀϹÝÀûÀ¸·Î ¼ö½Ê ~ ¼ö¹é MB Á¤µµÀÇ µ¥ÀÌÅ͸¦ ¹é¾÷Çϴµ¥ ÀûÇÕ

[¿¹Á¦] # cd /data ; # tar cvf /dev/rmt/0m .

©£ data¸¦ »ó´ë path·Î ¹é¾÷ ¹ÞÀ½ (# tar cv . °ú °°À½)

[¿¹Á¦] # tar cvf /dev/rmt/0m /data

©£ data¸¦ Àý´ë path·Î ¹é¾÷ ¹ÞÀ½

[¿¹Á¦] # tar rvf /dev/rmt/0m .

©£ ±âÁ¸ tape¿¡ µ¡ºÙ¿© ¹é¾÷ ¹ÞÀ½

[¿¹Á¦] # tar tvf /dev/rmt/0m

©£ ¹é¾÷ ¹ÞÀº ³»¿ëÀ» tape¿¡¼­ È®ÀÎÇÔ

n º¹±¸

¢¹ Àý´ë path·Î ¹é¾÷ ¹Þ¾ÒÀ» ½Ã

# tar xvf /dev/rmt/0m

©£ data´Â ¹é¾÷ ¹ÞÀº Àý´ë path·Î º¹±¸µÈ´Ù.

¢¹ »ó´ë path·Î ¹é¾÷ ¹Þ¾ÒÀ» ½Ã

# cd /data ; # tar xvf /dev/rmt/0m

©£ º¹±¸ÇÏ°íÀÚ ÇÏ´Â directory·Î À̵¿ ÈÄ º¹±¸

9.3 cpio
n ¹é¾÷

- copy input to output

- ´ë¿ë·®ÀÇ data¸¦ ¡®disk´ë disk¡¯ ȤÀº ¡®disk´ë tape¡¯ µî ÀÚÀ¯ÀÚÀç·Î »ç¿ë

°¡´É

[¿¹Á¦] #cd /data ; # find . –print –depth -xdev|cpio –pxdmluv /new-data

©£ ¡®data¡¯ directory¿¡ ÀÖ´Â ¸ðµç ³»¿ëÀ» ¡®/new-data¡¯·Î ¹é¾÷ ¹ÞÀ½

[¿¹Á¦] #cd /data ; # find . –print|cpio –ocvBhx > /dev/rmt/0m

©£ ¡¯data¡¯ directory¿¡ ÀÖ´Â ¸ðµç ³»¿ëÀ» tapeÀ¸·Î ¹é¾÷ ¹ÞÀ½

n º¹±¸

[¿¹Á¦] # cd /data ; # cpio -icdBumvhx < /dev/rmt/0m

©£ º¹±¸ ÇÒ directory·Î À̵¿ ÈÄ º¹±¸ÇÑ´Ù.

9.4 fbackup
n ¹é¾÷

- HP system¿¡¼­¸¸ µ¿ÀÛÇϸç SAMÀ¸·Îµµ °¡´É

- tarº¸´Ù ¼Óµµ°¡ ºü¸£´Ù.

- Backup µÈ ÆÄÀϵéÀÇ list¸¦ º¼ ¼ö ÀÖ´Ù.

- ¹é¾÷ ¹æ¹ý

- SAM ÀÌ¿ë

# sam

©£ Backup and Recovery ¼±ÅÃ

©£ Interactive Backup and Recovery ¼±ÅÃ

©£ ¹é¾÷ ¹ÞÀ» Device ÀåÄ¡¸¦ ¸¶Å©(space bar ÀÌ¿ë) ÇÑ ÈÄ

[Action] ¸Þ´º¸¦ ¼±ÅÃ

©£ Back up files Interactively ¡¦ ¼±ÅÃ

©£ Specify Tape Device Option ¡¦ ¼±Åà &agrave; ¿øÇÏ´Â Device option

¼±ÅÃ

©£ Select Backup Scopy ¼±Åà &agrave; ¿øÇÏ´Â ÆÄÀÏ ½Ã½ºÅÛÀ» add ÇÑ

´Ù.

©£ OK ¸¦ ´©¸£¸é ¹é¾÷ÀÌ ÁøÇàµÊ

- ¸í·É¾î ÀÌ¿ë

[¿¹Á¦] # fbackup &#8211;f device_file &#8211;i path &#8211;e path

©£ f : Ãâ·ÂÀ» º¸³¾ ÀåÄ¡ÆÄÀÏ, ÀϹÝÀûÀ¸·Î tape

©£ i : ¹é¾÷ ½Ã Æ÷ÇÔ½Ãų directory path

©£ e : ¹é¾÷ ½Ã Á¦¿Ü½Ãų directory path

[¿¹Á¦] # fbackup &#8211;f device file &#8211;g graph_file

©£ g : ¹é¾÷¿¡¼­ Æ÷ÇÔ ¶Ç´Â Á¦¿Ü½Ãų ÆÄÀÏ°ú µð·ºÅ丮ÀÇ ¸ñ·ÏÀÌ

µé¾î ÀÖ´Â ÆÄÀÏ

©£ ¡°-i¡±,¡±-e¡± option ´ë½Å »ç¿ë. »ó´ë path,Àý´ë path ¸ðµÎ °¡´É

[¿¹Á¦] # fbackup &#8211;f /dev/rmt/0m &#8211;i / -e /home

©£ tape ÀåÄ¡·Î ¡°/home¡± directory¸¦ Á¦¿Ü ÇÑ ¸ðµç ÆÄÀÏ ¹× ÇöÀç

¸¶¿îÆ® µÇ¾î ÀÖ´Â ¸ðµç ÆÄÀϽýºÅÛÀ» ¹é¾÷ÇÑ´Ù.

n º¹±¸

- SAM ÀÌ¿ë

# sam

©£ Backup and Recovery ¼±ÅÃ

©£ Interactive Backup and Recovery ¼±ÅÃ

©£ RestoreÇÒ Device ÀåÄ¡¸¦ ¸¶Å©(space bar ÀÌ¿ë) ÇÑ ÈÄ [Action]

¸Þ´º¸¦ ¼±ÅÃ

©£ Restore Files or Directories ¼±ÅÃ

©£ ¸Þ´º³»¿ë ¼±ÅÃÇÑ ÈÄ OK ´©¸£¸é ½ÇÇà

- ¸í·É¾î ÀÌ¿ë

[¿¹Á¦] # frecover &#8211;x &#8211;f /dev/rmt/0m &#8211;i {path} &#8211;e {path}

©£ -i path : º¹±¸ ÇÒ directory

©£ -e path : º¹±¸ÇÏÁö ¾ÊÀ» directory

[¿¹Á¦] # frecover &#8211;r &#8211;f /dev/rmt/0m

©£ tapeÀ¸·ÎºÎÅÍ ¸ðµÎ º¹±¸

9.5 dd
- Á÷Á¢ÀûÀÎ Image Copy ¼öÇà

- Bit ´ÜÀ§·Î º¹»çÇϱ⠶§¹®¿¡ ¼±ÅÃÀû º¹±¸ ºÒ°¡´É

- DiskÀÇ º¹»çº»À» ¸¸µé ¶§ À¯¿ë

- Redundant O/S¿ëÀ¸·Î È°¿ë °¡´É

[¿¹Á¦] #dd if=<source> of=<destination> (¹æÇâ Áß¿äÇÔ!)

#dd if=/dev/rdsk/c0t6d0 of=/dev/rdsk/c0t5d0 bs=1024k

#dd if=/dev/rdsk/c0t6d0 of=/dev/rmt/0m bs=12k

9.6 Make_recovery
n °³¿ä

- Make_recovery´Â ignite-uxÀÇ ÀϺΠ±â´ÉÀÌ´Ù.

- Make_recovery´Â ¡°system recovery boot tape¡± À» »ý¼ºÇϴµ¥ »ç¿ëµÈ´Ù.

Áï, ½Ã½ºÅÛÀÇ Root disk failure ½Ã O/S¸¦ À缳ġ ÇÏÁö ¾Ê°í ¹Ì¸® »ý¼ºÇÑ

recovery tapeÀ» ÀÌ¿ëÇÏ¿© ½Ã½ºÅÛÀ» ºÎÆÃÇÏ¿© O/S µ¥ÀÌÅ͸¦ ½Å¼ÓÇÏ°Ô

restore ÇÒ ¼ö ÀÖ´Ù.

- Recovery tape »ý¼º ½Ã /var ¿¡ 32MB °¡ ÇÊ¿äÇÏ´Ù.

- Boot image¸¦ »ý¼ºÇϱâ À§ÇØ ÇÊ¿äÇÑ °ø°£À¸·Î make_recovery ´Â /var¿¡

boot-image¸¦ »ý¼º ÇÑ ÈÄ ¡°dd¡± ¸í·É¾î·Î /dev/rmt/0mn ¿¡ º¹»çÇÑ´Ù.

- Boot image¸¦ Á¦¿ÜÇÑ ³ª¸ÓÁö fileµéÀº ¡°pax¡± ¸í·É¾î·Î ¹é¾÷µÈ´Ù.

- Online »óÅ¿¡¼­µµ ¹é¾÷ °¡´ÉÇÏ´Ù.

- ¼­·Î ´Ù¸¥ ½Ã½ºÅÛÀÇ O/S º¹Á¦ ½Ã¿¡µµ »ç¿ë °¡´ÉÇÏ´Ù.

- º°µµ·Î ignite-ux s/w ¸¦ ¼³Ä¡ ÇØ¾ß ÇÑ´Ù.

©£ fileset Àº /opt/ignite ¿¡ ¼³Ä¡µÊ.

n ¹é¾÷

¢¹ O/S ±âº» ¹é¾÷

: ±âº»ÀûÀ¸·Î O/S critical directory ¸¸ ¹é¾÷ ¹Þ´Â´Ù.

- /stand, /sbin, /dev, /etc : ¸ðµÎ Æ÷ÇÔ

- /usr, /opt, /var : ÀϺΠÆ÷ÇÔ

[¿¹Á¦] # make_recovery &#8211;d /dev/rmt/0mn (-d ÀÌÇÏ »ý·« °¡´É)

¢¹ O/S full ¹é¾÷

: vg00 ¿¡ Æ÷ÇÔµÈ ¸ðµç data¸¦ ¹é¾÷ ¹Þ´Â´Ù.

[¿¹Á¦] # make_recovery &#8211;A &#8211;d /dev/rmt/0mn


n º¹±¸

¢¹ O/S Àüü º¹±¸

¨ç SystemÀ» recovery tapeÀ¸·Î ºÎÆÃÇÑ´Ù.

¨è ºÎÆà ÈÄ batch mode ¹× interactive mode·Î º¹±¸ ÇÒ ¼ö ÀÖ´Ù.

- Batch mode

©£ ¹é¾÷ ¹ÞÀº disk ¿¡ ¹é¾÷ ¹ÞÀº »óÅ ±×´ë·Î º¹±¸ ½Ã »ç¿ëÇÑ´Ù. Áï, tapeÀ¸·Î ºÎÆà ÈÄ ignite-ux È­¸é load ½Ã interruptÀ» °ÉÁö ¾ÊÀ¸¸é ÀÚµ¿À¸·Î batch mode·Î µé¾î°¡ recovery ÀÛ¾÷ÀÌ ¼öÇàµÈ´Ù.

- Interactive mode

©£ tape À¸·Î ºÎÆà ÈÄ ignite-ux È­¸é load ½Ã ¾Æ¹« key³ª ´©¸£¸é interactive mode ·Î µé¾î°¥ ¼ö ÀÖ´Ù.

©£ Interactive mode¿¡¼­´Â restore ÇÒ disk ÁöÁ¤, O/S file system layout º¯°æ µî ´Ù¾çÇÑ flexibility¸¦ Á¦°øÇÑ´Ù.

¢¹ ÀϺΠÆÄÀÏ º¹±¸

¨ç º¹±¸ tape¿¡¼­ boot image¸¦ skipÇÏ°í file ÀÌ ¹é¾÷µÈ °÷À¸·Î À̵¿

# mt &#8211;t /dev/rmt/0mn fsf 1

¨è ¿øÇÏ´Â ÆÄÀÏ º¹±¸

# tar xvf /dev/rmt/0m etc/passwd opt/


°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2007/09/12 16:54 from 218.38.35.251

  [HP-UX]java µÎ°³ÀνºÅçÇϱ⠸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ [HP-UX]µð½ºÅ©±¸¼º  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡