Featured post

Quiz: Data PreProcessing

Thursday, 8 December 2016

AIX: Issue with Alt_Clone

Alt_Clone:


#alt_disk_copy -d ${HDISK_SEC} -n -Bg

Issues with Alt_Clone:


1>
# lspv
hdisk0          00cd1fc690ce7e75                    rootvg          active     
hdisk1          00cd1fc67b2700ca                    rootvg          active     
# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
hdisk1 pathid=0

# unmirrorvg rootvg hdisk1
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.

# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            558         486         111..105..47..111..112
hdisk1            active            558         558         112..112..111..111..112
# reducevg rootvg hdisk1

2> Dump device exist on hdisk1 ( clone disk) so error was coming while detaching from rootvg
# lspv
hdisk0          00c32b77e0f7031a                    rootvg          active     
hdisk1          00c32b77e14534ec                    rootvg          active     
# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
hdisk1 blv=hd5 pathid=0
# 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.
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1            active            558         556         112..110..111..111..112
hdisk0            active            558         499         111..108..57..111..112
# lspv -l hdisk0
hdisk0:
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
hd10opt               5       5       00..00..05..00..00    /opt
hd11admin             1       1       00..00..01..00..00    /admin
livedump              1       1       00..01..00..00..00    /var/adm/ras/livedump
lg_dumplv2            2       2       00..02..00..00..00    N/A
hd5                   1       1       01..00..00..00..00    N/A
hd4                   1       1       00..00..01..00..00    /
hd8                   1       1       00..00..01..00..00    N/A
paging00              2       2       00..00..02..00..00    N/A
hd6                   1       1       00..01..00..00..00    N/A
hd1                   20      20      00..00..20..00..00    /home
hd3                   10      10      00..00..10..00..00    /tmp
hd9var                2       2       00..00..02..00..00    /var
hd2                   12      12      00..00..12..00..00    /usr
# lspv -l hdisk1
hdisk1:
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
lg_dumplv             2       2       00..02..00..00..00    N/A
# sysdumpdev -l
primary              /dev/lg_dumplv
secondary            /dev/lg_dumplv2
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional

Set The primary dumpdevice to something else to free up hdisk1
# sysdumpdev -p /dev/sysdumpnull
primary              /dev/sysdumpnull
secondary            /dev/lg_dumplv2
copy directory       /var/adm/ras
forced copy flag     TRUE
always allow dump    FALSE
dump compression     ON
type of dump         traditional
# rmlv lg_dumplv
Warning, all data contained on logical volume lg_dumplv will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
rmlv: Logical volume lg_dumplv is removed.
# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1            active            558         558         112..112..111..111..112
hdisk0            active            558         499         111..108..57..111..112

Now rootvg can be reduced as hdisk is free

# reducevg rootvg hdisk1

No comments:

Post a Comment