ÀÛ¼ºÀÚ: Á¶¿©¸§ (solaris@mesani.net) ÀÛ¼ºÀÏ: 2003.5.1 ¼öÁ¤ÀÏ: 2003.5.1 ÀúÀÛ±Ç: ÀÌ ¹®¼´Â GPL(Gnu Public License)À» µû¸¨´Ï´Ù.
OK boot cdrom -s
OS µð½ºÅ©ÀÇ °æ¿ì´Â ´ÙÀ½°ú °°´Ù.
# init S
# dd if=/dev/rdsk/c0t3d0s2 of=/dev/rdsk/c1t0d0s2 bs=521k
if: ÀÔ·Â µð¹ÙÀ̽º (OS ¿øº» µð½ºÅ©ÀÇ ÀåÄ¡¸í)
of: Ãâ·Â µð¹ÙÀ̽º (º¹Á¦ µð½ºÅ©ÀÇ ÀåÄ¡¸í)
bs: ºí·° »çÀÌÁî ( 128k, 512kµî : ºí·°´ÜÀ§°¡ Ŭ¼ö·Ï º¹Á¦ ¼Óµµ°¡ ºü¸£³ª ÀÌ´Â
µð½ºÅ©ÀÇ IO¿¡ ´Þ·È´Ù. Âü°í·Î 512K·Î ¼öÇà½Ã SCSI 9G 10k rpmÀÇ °æ¿ì ¾à
1½Ã°£ 20¿©ºÐ ¼Ò¿ä)
# fsck /dev/rdsk/c1t0d0s#
Âü°í) º¸ÅëÀº º¹Á¦ µð½ºÅ©°¡ Àå¾Ö󸮽à OSµð½ºÅ©¿Í ´ëüµÉ °ÍÀ̹ǷΠ¼öÁ¤ÇÏÁö ¾Ê¾Æµµ µÈ´Ù. ±×·¯³ª º¹Á¦µð½ºÅ©¸¦ ½Ã½ºÅÛ¿¡ ÀåÂøÇØ µÎ¾ú´Ù°¡ ¹®Á¦°¡ ¹ß»ýÇϸé ÀÌ µð½ºÅ©·Î ¹Ù·Î ºÎÆÃÇÏ·Á¸é ¼öÁ¤ÀÌ ÇÊ¿äÇÏ´Ù. ÀÌ °æ¿ì PROM¿¡¼ nvalias·Î º¹Á¦µð½ÃÅ©ÀÇ º°¸íÀ» ¼³Á¤Çصθé PROM¿¡¼ ºÎÆýà Æí¸®ÇÏ´Ù.
Âü°í1) À§¿¡¼ ¾ð±ÞÇßµíÀÌ ½Ã½ºÅÛ¿¡ ÀåÂøÇØ µÎ·Á´Â °æ¿ì PROM¸í·É nvalias·Î ¼³Á¤ÇØ
µÎ¸é Æí¸®ÇÏ´Ù.
ÁÖÀÇ) ÀÌ ¶§µµ ¸¶Âù°¡Áö·Î º¹Á¦ µð½ºÅ©ÀÇ vfstab¿¡ ¼³Á¤µÈ µð¹ÙÀ̽º ¸íÀÌ °°Àº°¡¸¦ ÆÇ´ÜÇÏ¿© ´Ù¸£´Ù¸é CD-ROM single User·Î ºÎÆÃÇÏ¿© º¹Á¦ µð½ºÅ©ÀÇ /(root) ÆÄÀÏ ½Ã½ºÅÛÀ» ¸¶¿îÆ®ÇÏ°í vfstabÀ» ¸Â°Ô ¼öÁ¤ÇÑ´ÙÀ½ À§ÀÇ ¹æ¾÷À» ¼öÇàÇÑ´Ù.
I used the following steps to backup one drive to a second identical one (going from memory) 1) use prtvtoc and fmthard to partition the second disk 2) newfs the slices on the second disk 3) mount up the root slice of the second disk under /mnt 4) cd /mnt;ufsdump of - / | ufsrestore rf - 5) sed < /mnt/etc/vfstab -e s/c0t3d0/c0t1d0/g > /tmp/vfstab.new 6) mv /tmp/vfstab.new /mnt/etc/vfstab 7) cd /;umount /mnt 8) continue to mount up each remaining slice and copy the data to it. 9) I would also fsck each slice on the new disk just to make sure everything is ok. 10) run installboot on the new disk to create the boot blocks Once you've done this you can do a "boot disk1" from the ok prompt. This method saved my "tech lead's" butt once. Boot off of the second internal (cold backup) disk and the server was back up again. Dupe the disk1 back to disk3 and reboot later in the evening. I am never going to let him live down that mistake!