First, the tutorials named above are good reads.
Second, are you establishing a boot environment on c0t0d1 or c0t1d0? Your statement says c0t0d1 (like the disk names given to different LUNs presented form hardware RAID) but the command suggest c0t1d0.
With that said, this command:
lucreate -c first disk -m /:/dev/dsk/c0t1d0s0:ufs -n second disk
has a problem if you are using if verbatim, the names of your boot environments contain spaces. It may be possible to do this like this:
lucreate -c "first disk" -m /:/dev/dsk/c0t1d0s0:ufs -n "second disk"
but I strongly advise against it. Doing this means you'll have to be careful to quote the boot environment names and you have to hope the guys at Sun who wrote the LU scripts (live upgrade is partly a body of scripts that do what you could do manually; the commands are not all binaries). I would use this command:
lucreate -c pBE -m /:/dev/dsk/c0t1d0s0:ufs -n sBE
If you have Solaris 10 05/09 and have properly sliced c0t1, this command will create an alternate boot environment on c0t1d0s0 that is a copy of the currently booted / file system. Please note that if you have broken out /var, /opt, /usr, or others, this command alone will not necessarily be enough; you may have to copy these other file systems as well.
If you have older versions of Solaris 10, live upgrade is REALLY buggy. You should at least patch to the latest recommended patch set before proceeding.
If you plan to boot from the alternate environment, you would use the luactivate command to boot the alternate boot environment.
In addition, since the alternate is on a different disk, you may also have to force the system to boot from the correct disk. On SPARC systems, this would mean specifying the correct disk and slice in openBOOT with the boot <disk name> command. If this is an X6 server, you will likely have to change the boot order in the BIOS so that the correct disk (the one with the alternate boot environment) appears above the previous boot disk in the boot order.
Main Topics
Browse All Topics





by: yuzhPosted on 2009-10-19 at 18:01:58ID: 25610255
Not sure what you means " I want to transfer the info from c0t0d0 to c0t0d1 ", please have a look at the following tutorials:
http://www.mattz one.com/li veup.html
http://blogs.sun.com/DanX/ entry/simp le_live_up grade_exam ple_for
and the Sun doc:
http://docs.sun.com/app/do cs/doc/819 -2240/lucr eate-1m?a= view</A>
If you need more help, please state clearly about what are you trying to achieve.