Under Construction

Schritt 4: Erzeugen einer altinst_rootvg

AIX erlaubt es eine Kopie der rootvg zu erstellen. Die Kopie ist vollkommen unabhängig von der rootvg und ist bootfähig. Für das Erzeugen der Kopie (Volume Group altinst_rootvg) wird mindestens ein freies Physical Volume benötigt. Hat man kein freies Physical Volume zur Verfügung, aber die rootvg ist gespiegelt, dann kann auch die Spiegelung der rootvg aufgehoben werden, um ein freies Physical Volume für die altinst_rootvg zu gewinnen.

Unser Beispiel-System aix05 ist gespiegelt:

aix05 # lspv
hdisk0          00c276b0a86e81d5                    rootvg          active     
hdisk1          00c276b0a86e839f                    rootvg          active     
aix05 #

Wir entspiegeln die rootvg um das Physical Volume hdisk1 frei zu machen:

aix05 # unmirrorvg rootvg hdisk1
0516-1246 rmlvcopy: If hd5 is the boot logical volume, please run 'chpv -c <diskname>'
        as root user to clear the boot record and avoid a potential boot
        off an old boot image that may reside on the disk from which this
        logical volume is moved/removed.
0516-1804 chvg: The quorum change takes effect immediately.
0516-1144 unmirrorvg: rootvg successfully unmirrored, user should perform
        bosboot of system to reinitialize boot records.  Then, user must modify
        bootlist to just include:  hdisk0.
aix05 # chpv -c hdisk1
aix05 # reducevg rootvg hdisk1
aix05 # bosboot -a -d /dev/hdisk0
 
bosboot: Boot image is 53276 512 byte blocks.
aix05 # bootlist -m normal hdisk0
aix05 #

Nachdem nun ein freies Physical Volume verfügbar ist, kann die rootvg mit Hilfe des Kommandos alt_disk_copy kopiert werden:

aix05 # alt_disk_copy -d hdisk1 -B -n
Calling mkszfile to create new /image.data file.
Checking disk sizes.
Creating cloned rootvg volume group and associated logical volumes.
Creating logical volume alt_hd5.
Creating logical volume alt_hd6.
Creating logical volume alt_hd8.
Creating logical volume alt_hd4.
Creating logical volume alt_hd2.

forced unmount of /alt_inst
Changing logical volume names in volume group descriptor area.
Fixing LV control blocks...
Fixing file system superblocks...
aix05 #

Ein Upgrade kann nun entweder auf der rootvg oder der altinst_rootvg durchgeführt werden. Sollte es Probleme beim Upgrade geben, oder das System nach dem Upgrade nicht bootfähig sein, kann durch Booten von der altinst_rootvg oder der rootvg der ursprüngliche Zustand wiederhergestellt werden. Das geht bedeutend schneller als ein Wiederherstellen über einen mksysb, oder Wiederherstellen aus einem Backup.