The following steps should be performed to preserve the LSM configuration
currently in use on a system. Steps 2 and 4 are not necessary when performing
an update installation because the update preserves the LSM volboot file in the root file system.
Consider the following LSM configuration with mirrored rootvol and swapvol. The /usr file
system is also encapsulated to use the LSM volume volrz10g:
Remove the LSM volume volusr from the LSM configuration:
Similar steps for the /var file system are required
if LSM volumes were used.
After the full installation, the /usr and /var file systems reside on disk partitions. Separate steps are
required to encapsulate the disk partitions to LSM volumes. Before the current /usr and /var file systems can be encapsulated
to LSM volumes, a cleanup of the LSM configuration that existed before the
full installation has to be done. If either the /usr or /var file systems resided on LSM volumes before the full installation,
you will have to clean up these LSM volumes because the LSM volumes will no
longer be in use.
Refer to Logical Storage Manager for more
information about LSM.
The following steps should be performed to preserve the LVM configuration
currently in use on a system:
Restoring the /etc/lvmtab file has sufficient information
for a complete LVM configuration. The LVM configuration files that were backed
up in Step 3 were backed for added safety and do not have to be restored.
Refer to Logical Storage Manager for information about encapsulating existing
LVM volumes to LSM volumes.
You must save your current Prestoserve configuration before beginning
a full installation because the root file system is overwritten
during a full installation. To save and restore the Prestoserve configuration,
follow these steps:
A.1 Preparing for a Full Installation if Using LSM
Read this section only if your system is installed with and using the
Logical Storage Manager (LSM) and you are performing a full installation.
# voldctl list
# mkdir /backup/lsm
# cp /etc/vol/volboot /backup/lsm/volboot
v rootvol root ENABLED ACTIVE 131072 ROUND -
pl rootvol-01 rootvol ENABLED ACTIVE 131072 CONCAT - RW
sd rz10-01 rootvol-01 0 131056 16 rz10 rz10
sd rz10-02 rootvol-01 16 0 131056 rz10 rz10
pl rootvol-02 rootvol ENABLED ACTIVE 131072 CONCAT - RW
sd rz14-01 rootvol-02 0 131056 16 rz14 rz14
sd rz14-02 rootvol-02 16 0 131056 rz14 rz14
v swapvol swap ENABLED ACTIVE 400880 ROUND
pl swapvol-01 swapvol ENABLED ACTIVE 400880 CONCAT - RW
sd rz10b-01 swapvol-01 0 0 400880 rz10b rz10b
pl swapvol-02 swapvol ENABLED ACTIVE 400880 CONCAT - RW
sd rz14b-01 swapvol-02 0 0 400880 rz14b rz14b
v volusr fsgen ENABLED ACTIVE 1787904 SELECT -
pl volusr-01 volusr ENABLED ACTIVE 1787904 CONCAT - RW
sd advfs_rz10g-01 volrz10g-01 0 0 1787904 advfs_rz10g rz10g
pl volusr-02 volusr ENABLED ACTIVE 1787904 CONCAT - RW
sd advfs_rz14g-01 volrz10g-02 0 0 1787904 advfs_rz14g rz14g
Perform the following steps to remove the use of the LSM volumes for root, swap, and /usr:
# volplex dis rootvol-02
# volplex dis swapvol-02
# voledit -rf rm rootvol-02 swapvol-02
# voldg rmdisk rz14 rz14b
# voldisk rm rz14 rz14b
# /usr/sbin/volunroot
Reboot
the system at the next available opportunity.
# voledit -rf rm volusr
# voldg rmdisk advfs_rz10g advfs_rz14g
# voldisk rm rz10g rz14g
Change the /etc/fdmns/usr_domain directory to use /dev/rz10g instead of the LSM volume:
# cd /etc/fdmns/usr_domain
# rm volusr
# ln -s /dev/rz10g rz10g
If UNIX file systems (UFS) were used instead of Advanced File Systems (AdvFS),
the /etc/fstab file should be modified to use /dev/rz10g for the /usr file system.
# voldisk list > /backup/lsm/voldisk.out
# volprint -g rootdg -mvps > \
/backup/lsm/volprint.rootdg.out
# volprint -g diskgroup -mvps > \
/backup/lsm/volprint.diskgroup.out
The backup files created
in the previous steps should also be copied to a backup media (i.e., tape)
before the installation is started for added safety. These configuration
files do not need to be restored under normal circumstances; restoring the /etc/vol/volboot file from backup has sufficient information for
the LSM configuration.
# cp /backup/lsm/volboot /etc/vol/volboot
# volinstall
# rm -f /etc/vol/reconfig.d/state.d/install-db
# vol-startup
A.2 Preparing for a Full Installation if Using LVM
Read this section only if your system is installed with and using the
Logical Volume Manager (LVM) and you are performing a full installation.
Note
# mkdir /backup/lvm
# cp /etc/lvmtab /backup/lvm/lvmtab
# tar cf /backup/lvm/lvm.devfiles.tar /dev/vg1 /dev/vg2 /dev/vg3
# vgdisplay -v /dev/vg1 > /backup/lvm/vg1.out
# lvdisplay -v /dev/vg1/lvol1 > /backup/lvm/vg1.lvol1.out
# pvdisplay -v /dev/rz8c > /backup/lvm/vg1.rz8c.out
# cp /backup/lvm/lvmtab /etc/lvmtab
Then, recreate the LVM special device files from the
tar file stored in the /backup directory:
# tar xf /backup/lvm/lvm.devfiles.tar
A.3 Preparing for a Full Installation if Using Prestoserve
Read this section only if your system is using Prestoserve and you are
performing a full installation.
To configure the prestoserve software, refer to the
# mkdir /backup/presto
# cp /etc/prestotab /backup/presto/prestotab
# cp /backup/presto/prestotab /etc/prestotab
prestosetup
(8)
or setup
(8) reference pages for more information.
A.4 Preparing for a Full Installation if Using AdvFS
If your system is configured with AdvFS, a full installation
overwrites the /etc/fdmns directory resulting in the loss
of critical configuration data. If the file system layout of all of your AdvFS
file systems will remain the same after the full installation, then save a
copy of the /etc/fdmns directory and all files under the
directory before beginning the installation. After the installation is complete,
restore the directory. If you plan to change your file system layout during
the full installation process (for example, /usr is currently
on rz0g and you plan to change /usr
to rz1g during the installation process), then you will
need to selectively copy files before beginning the installation. After the
installation is complete, selectively restore the files.