The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Перенос Solaris x86 с одного диска на другой (eng) (solaris disk boot)


<< Предыдущая ИНДЕКС Правка src Установить закладку Перейти на закладку Следующая >>
Ключевые слова: solaris, disk, boot,  (найти похожие документы)
From: <briddle@www.riddleware.com.> Date: Mon, 20 Sep 2004 18:21:07 +0000 (UTC) Subject: Перенос Solaris x86 с одного диска на другой (eng) Оригинал: http://www.riddleware.com/solx86/SCSI_change.html Based on Sunsolve: Info Docs article 13133, SBRD article 17614 SYNOPSIS: Moving Solaris x86 boot drive DETAILED DESCRIPTION: It is possible to move a bootable installation of Solaris 2.x x86 to another machine or hard drive controller. However, the procedure is not straight-forward. The procedure listed below might not work in all situations. Always backup important data before attempting to try this. Remember, this has not been WIDELY tested but has worked in several cases. Note: This procedure is not necessary to move a data drive which is not used for booting. This is for a drive which contains Solaris 2.x x86's /, /usr, /opt, etc and is the boot drive. Overall summary: 1) Install the drive in the new system or new hard drive controller. 2) Boot off the CD-ROM. 3) Mount the hard disk's /root and /usr. 4) Copy or Rebuild /devices and /dev. 5) Modify /etc/vfstab and /etc/bootrc if necessary. 6) Unmount the hard disk. 7) Attempt to reboot off the hard disk. 1) Install the drive in new system or new hard drive controller. Install any driver updates that are needed by the new hardware BEFORE moving the hard disk. Check the latest HCL to determine if any driver updates are required by the destination hardware. Be sure to check all the hardware basics such as target numbers, termination, power, HBA IRQs, HBAs I/O addresses, etc. Consult the X86 Device Configuration Guide for proper settings of any hard drive controllers (HBA) 2) Boot off the CD-ROM. Use floppy boot disk and/or conjunction with the CD-ROM to boot off the CD-ROM. Enter 'b -s' when asked for installation type. This will boot into single user mode. A shell will follow shortly after this. 3) Mount the hard disk's /root and /usr. # TERM=at386 # export TERM # mount /dev/dsk/c?t?d?s0 /a (mounts root filesystem to '/a') '?' varies on systems. Look in /dev/dsk to help determine which device to use. Once the hard disk's root filesystem is mounted, determine the slice number of the '/usr' filesystem. Example: # more /a/etc/vfstab | grep /usr #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes - /dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no - ^ ^ | | This is the number needed Now mount the hard disk's /usr filesystem under /a/usr. # mount /dev/dsk/c?t?d?s* /a/usr (where * is the number found above ) (where ? are the numbers used for root) 4a) Copy /devices and /dev (tested under Solaris 8) # cd /tmp/dev # tar cvfp - . | ( cd /a/dev; tar xvfp - ) # cd /tmp/devices # tar cvfp - . | ( cd /a/devices; tar xvfp - ) # cp /tmp/root/etc/path_to_inst /a/etc/path_to_inst # mv /a/etc/path_to_inst.old /a/etc/path_to_inst.001 4b) OLD VERSION Rebuild /devices and /dev. (broke as of Solaris 2.7 3/99) # cd /a # _INIT_RECONFIG=1 # export _INIT_RECONFIG # /usr/sbin/chroot /a /usr/sbin/drvconfig Configuring the /devices directory # /usr/sbin/chroot /a /usr/sbin/devlinks Configuring the /dev directory Configuring the /dev directory (compatibility devices) 5) Modify /etc/vfstab and /etc/bootrc if necessary. a) Determine the new boot path: # ls -l /dev/dsk/c?t?d?s0 (This is the hard drive's root slice as before) lrwxrwxrwx 1 root root 38 Mar 14 08:12 /dev/dsk/c1t1d0s0 -> ../.. /devices/eisa/ncrs@1,0/cmdk@1,0:a ^^^^^^^^^^^^^^^^^^^^^^^^ |||||||||||||||||||||||| This is the new boot path # vi /a/etc/bootrc (Replace old boot path with new boot path) Modify the file /a/boot/solaris/bootenv.rc (for 2.7 and higher releases) b) Update vfstab: Look in /a/dev/dsk/*. It is very likely that the controller numbers have changed. It is even possible that the entries in here are different than the entries in /dev/dsk/*. Be sure to update the /a/etc/vfstab according to these new devices. # vi /a/etc/vfstab (Make any changes and save) 6) Unmount the hard disk. # cd / # umount /a/usr # umount /a 7) Attempt to reboot off the hard disk. # halt Power-cycle the system. Boot off the floppy if the new hard disk is not the first (boot) disk. SOLUTION SUMMARY: PRODUCT AREA: Alternate Platform PRODUCT: Configuration SUNOS RELEASE: Solaris 2.x_x86 HARDWARE: Intel X86

<< Предыдущая ИНДЕКС Правка src Установить закладку Перейти на закладку Следующая >>

 Добавить комментарий
Имя:
E-Mail:
Заголовок:
Текст:




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру