That did it: "/a/boot/solaris/bootenv.rc" was the file that remained
to be updated; specifically the "setprop bootpath" directive.
So with that, the complete steps are as follows (noting that below we save
the bootadm(1M) step for last, since some of the commands before it may
update the contents of files that bootadm(1M) will store in the boot_archive
file)... The following steps can be, to a large extent, used to swap/migrate
a boot drive in Solaris x86 (the drives just happened to be VMWare provided).
(1) Swap the names of these two disk files...
> Solaris10SXCR_c1t0d0-flat.vmdk
> Solaris10SXCR_c1t1d0-flat.vmdk
(2) With VIM, I edited their associated text files, to reflect the
rename above (i.e. you have to swap the cWtXdY strings)...
> Solaris10SXCR_c1t0d0.vmdk
> Solaris10SXCR_c1t1d0.vmdk
(3) Next, boot the VM into single user mode off the SXCRnv82 DVD, and
make the following adjustments:
root# mount -F ufs -o rw /dev/dsk/c1t0d0s0 /a
root# vi /a/etc/vfstab #Make appropriate path adjustments
root# devfsadm -Cvr /a #For good measure
root# ls -l /dev/dsk/c1t0d0s0 | sed -e 's/.*\/devices/setprop bootpath /'
setprop bootpath /[EMAIL PROTECTED],0/pci1000,[EMAIL PROTECTED]/[EMAIL
PROTECTED],0:a
root# vi /a/boot/solaris/bootenv.rc
Update the "setprop bootpath" directive so that it reflects the
path derived from the previous command. Note that you have to
enclose the path component in single quotes, as follows:
setprop bootpath '/[EMAIL PROTECTED],0/pci1000,[EMAIL PROTECTED]/[EMAIL
PROTECTED],0:a'
root# cd /a/boot/grub
root# installgrub -m ./stage1 ./stage2 /dev/rdsk/c1t0d0s0
root# vi /a/boot/grub/menu.lst #The relevant final contents shown.
============================================
default 0
timeout 10
splashimage /boot/grub/splash.xpm.gz
title Solaris10_SXCRnv82
root (hd0,0,a)
kernel$ /platform/i86pc/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive
============================================
root# mv /a/platform/`uname -i`/boot_archive /a/platform/`uname
-i/boot_archive.OLD
root# bootadm update-archive -v -R /a # Create a fresh archive.
> cannot find: /a/etc/cluster/nodeid: No such file or directory
> cannot find: /a/etc/devices/mdi_ib_cache: No such file or directory
> cannot find: /a/etc/devices/retire_store: No such file or directory
> cannot find: /a/platform/i86pc/ucode/AuthenticAMD: No such ...
root# cd /; umount /a; reboot (Making sure to disconnect the DVD).
Thanks
Noel Milton
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]