Set the boot disk and mirror disk partition table the same.
1) dd can be used to make the layouts the same.
dd if=/dev/rdsk/ of=/dev/rdsk/ bs=1024k count=2
2) Check to see what lu Environment are available
bash-3.00#lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
c3t0d0s0 yes yes yes no -
3) Create the mirror boot drive
bash-3.00# lucreate -c c3t0d0s0 -m /:/dev/dsk/c3t1d0s0:ufs -n bootenv2
Discovering physical storage devices.
Discovering logical storage devices.
Cross referencing storage devices with boot environment configurations.
Determining types of file systems supported
Validating file system requests
Preparing logical storage devices
Preparing physical storage devices
Configuring physical storage devices
Configuring logical storage devices
Analyzing system configuration.
Comparing source boot environment file systems with the file
system(s) you specified for the new boot environment. Determining which
file systems should be in the new boot environment.
Updating boot environment description database on all BEs.
Searching /dev for possible boot environment filesystem devices
Updating system configuration files.
The device is not a root device for any boot environment; cannot get BE ID.
Creating configuration for boot environment .
Source boot environment is .
Creating boot environment .
Creating file systems on boot environment .
Creating file system for in zone on .
Mounting file systems for boot environment .
Calculating required sizes of file systems for boot environment .
Populating file systems on boot environment .
Checking selection integrity.
Integrity check OK.
Populating contents of mount point .
Copying.
4)Mount the mirror drive to /a
mount /dev/rdsk/c3t1d0s0 /a
5) Create VRTS_ADMIN.cfg file in /var/tmp/ for auto answer..
vi /var/tmp/VRTS_ADMIN.cfg
#
# Add/Remove package and don't ask any questions.
#
mail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=nocheck
setuid=nocheck
conflict=nocheck
action=nocheck
proxy=
basedir=default
5)Use Solaris pkgrm to remove VRTS pkgs from mirror drive.
pkgrm -n -R /a -a /var/tmp/VRTS_ADMIN.cfg VRTSvxfs
6) Adding VRTS pkgs in a while loop using pking info from primary boot drive.
cd to directory where new packages are located
make sure Symantec packages are unzip and untar
pkgadd -n -R /a -a /var/tmp/VRTS_ADMIN.cfg VRTSvxfs
--- Note: Use while loops at own risk..
7)Removing VRTS pkgs in a while loop using pking info from primary boot drive.
pkginfo | grep VRTS | awk '{print $2}' | while read a;do pkgrm -n -R /a -a /var/tmp/VRTS_ADMIN.cfg $a;done
8) Adding VRTS pkgs in a while loop using pking info from primary boot drive.
cd to directory where new packages are located
make sure Symantec packages are unzip and untar
ls | grep VRTS | while read a;do pkgadd -n -R /a -a /var/tmp/VRTS_ADMIN.cfg $a;done
----
9) SAMPLE-- How to delete lu boot environment
bash-3.00# ludelete bootenv2
Warning: Boot environment has one or more file systems mounted at .
Determining the devices to be marked free.
INFORMATION: Unable to determine size or capacity of slice .
Updating boot environment configuration database.
Updating boot environment description database on all BEs.
Updating all boot environment configuration databases.
Boot environment deleted.