Create a bootable rootvg backup to another hdisk (alt_disk_copy)

This post will describe how to create a bootable backup of the rootvg to another hdisk using the command alt_disk_copy. The command execution will be performed in 2 phases which are described below. The phase 1 and 3 are used in this example. There is also a possibility to use the phase 2 with alt_disk_copy where you can run your own customization sripts against the rootvg copy. For more information aks your good friend google.

Phase 1- Creates the altinst_rootvg VG, alt_ LV’s, /alt_inst file systems and restores rootvg to hdisk1.

                  Disk to backup to.
                  |
 # alt_disk_copy -d hdisk1 -P1  
                            |
                            Phase 1

Calling mkszfile to create new /image.data file.
Checking disk sizes.
Creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_fslv06
Creating logical volume alt_hd6
Creating logical volume alt_hd8
Creating logical volume alt_hd5
Creating logical volume alt_hd4
Creating logical volume alt_hd2
Creating logical volume alt_hd3
Creating logical volume alt_hd1
Creating logical volume alt_hd9var
Creating logical volume alt_livedump
Creating logical volume alt_fslv08
Creating logical volume alt_loglv00
...
...
...
Creating /alt_inst/home file system.
Creating /alt_inst/opt file system.
Creating /alt_inst/tmp file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/usr/sys/inst.images file system.
Generating a list of files
for backup and restore into the alternate file system...
Backing-up the rootvg files and restoring them to the 
alternate file system...
Phase 1 complete.


Now we have a copy of the rootvg on hdisk1

# lspv
hdisk0          00c0e90dce6c290a                    rootvg          active              
hdisk1          00cf405ea5c630a9                    altinst_rootvg           

Phase 3 Unmounts the /alt_inst file systems, renames the file systems and LV’s, removes alt_ LV names from ODM, and varies off the altinst_rootvg. Set the bootlist to boot from hdisk 1

                            Phase 3 
                           |
# alt_disk_copy -d hdisk1 -P3 
## Phase 3 ###################
Verifying altinst_rootvg...
Modifying ODM on cloned disk.
Building boot image on cloned disk.
forced unmount of /alt_inst/var/adm/ras/livedump
forced unmount of /alt_inst/var/adm/ras/livedump
forced unmount of /alt_inst/var
forced unmount of /alt_inst/var
forced unmount of /alt_inst/usr/sys/inst.images
forced unmount of /alt_inst/usr/sys/inst.images
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/home
forced unmount of /alt_inst/home
forced unmount of /alt_inst
forced unmount of /alt_inst
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...
Bootlist is set to the boot disk: hdisk1 blv=hd5

In order to check if it is working, verify your bootlist with ‘bootlist -m normal -o’ and reboot. After the reboot you should be booted from hdisk1

# lspv
hdisk0          00c0e90dce6c290a                    old_rootvg                          
hdisk1          00cf405ea5c630a9                    rootvg          active  
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: