现在的位置: 首页 > 综合 > 正文

Move an installed (Open)Solars from one disk to another

2013年03月11日 ⁄ 综合 ⁄ 共 1040字 ⁄ 字号 评论关闭
Procedure:

1. Take a backup. Rince and repeat. Take another backup as well.
2. change hardware
3. Boot failsafe single user on new hardware - normally your root disk
gets mounted as /a doing this.
4. Replace /a/etc/path_to_inst with the failsafe /etc/path_to_inst
(should be a single stub line)
5. Remove the physical devices from /a/devices i.e the pci@* paths (rm
-rf). Dont touch any pseudo or others you are unsure of.
6. do an rm /dev/dsk/*, /dev/rdsk/* to get rid of the old entries
7. run devfsadm to fix up the device config from scratch:

# devfsadm -r /a

8. Check that the entries in /a/devices and /a/etc/path_to_inst are now
populated. If not, use tar to copy the failsafe device tree in place
and run step 7 again i.e

# cd /devices; tar cvf -|(cd /a/devices; tar xf -)

9. Check /a/dev/dsk - make sure you have disks.
10. edit /a/boot/solaris/bootenv.rc - fix your boot-device path
11. Check no disk names have changed - if they have, fix /etc/vfstab
12. Run "bootadm update-archive -R /a" to repack your boot archive.

You should now be able to boot off the disk as if it always lived on
your system.

this is really just a modification of an old procedure for SPARC systems
to re-order controller numbers. There is probably an Infodoc on it
somewhere.

抱歉!评论已关闭.