OS 패치전 기존 rootvg를 alt 복제 한 후

OS 패치 후 alt 복제볼륨에 엑세스를 할 경우 아래와 같이 수행한다.

 


[localhost@root:/] lspv
hdisk0          000d32da0b9e6ec2                    rootvg          active
hdisk1          000d32da826d9167                    altinst_rootvg

[localhost@root:/] df
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          262144     72968   73%     5653    40% /
/dev/hd2         5242880    262776   95%    41944    56% /usr
/dev/hd9var       262144    108272   59%     4500    27% /var
/dev/hd3          262144    237656   10%       28     1% /tmp
/dev/hd1         2097152   2095976    1%       15     1% /home
/proc                  -         -    -         -     -  /proc
/dev/hd10opt      131072     18072   87%     1698    40% /opt
/dev/fslv00     10485760   4672296   56%      920     1% /ptf


[localhost@root:/] alt_rootvg_op -W -d hdisk1
Waking up altinst_rootvg volume group ...

[localhost@root:/] df
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          262144     72936   73%     5677    40% /
/dev/hd2         5242880    262776   95%    41944    56% /usr
/dev/hd9var       262144    108272   59%     4500    27% /var
/dev/hd3          262144    237656   10%       27     1% /tmp
/dev/hd1         2097152   2095976    1%       15     1% /home
/proc                  -         -    -         -     -  /proc
/dev/hd10opt      131072     18072   87%     1698    40% /opt
/dev/fslv00     10485760   4672296   56%      920     1% /ptf
/dev/alt_hd4      262144     73552   72%     5663    39% /alt_inst
/dev/alt_hd1     2097152   2096080    1%       15     1% /alt_inst/home
/dev/alt_hd10opt     131072     18824   86%     1698    42% /alt_inst/opt
/dev/alt_fslv00   10485760   4723240   55%      920     1% /alt_inst/ptf
/dev/alt_hd3      262144    230840   12%       28     1% /alt_inst/tmp
/dev/alt_hd2     5242880    307112   95%    41944    52% /alt_inst/usr
/dev/alt_hd9var     262144    108608   59%     4502    27% /alt_inst/var

 

[localhost@root:/] lsvg -l altinst_rootvg
altinst_rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
alt_hd5             boot       1       1       1    closed/syncd  N/A
alt_hd6             paging     8       8       1    closed/syncd  N/A
alt_hd8             jfs2log    1       1       1    open/syncd    N/A
alt_hd4             jfs2       2       2       1    open/syncd    /alt_inst
alt_hd2             jfs2       40      40      1    open/syncd    /alt_inst/usr
alt_hd9var          jfs2       2       2       1    open/syncd    /alt_inst/var
alt_hd3             jfs2       2       2       1    open/syncd    /alt_inst/tmp
alt_hd1             jfs2       16      16      1    open/syncd    /alt_inst/home
alt_hd10opt         jfs2       1       1       1    open/syncd    /alt_inst/opt
alt_lg_dumplv       sysdump    32      32      1    closed/syncd  N/A
alt_fslv00          jfs2       80      80      1    open/syncd    /alt_inst/ptf

 

Note.  AIX 5.3 Command Reference 자료를 보면 alt_disk_install 명령어는 더이상 사용되지 않는다고 합니다.
         alt_disk_install 명령어에 해당 옵션을 사용가능하다 ..
         실제로 구동되는 것은 다음과 같다.

 

[localhost@root:/] alt_disk_install -S hdisk1
+-----------------------------------------------------------------------------+
ATTENTION: calling new module /usr/sbin/alt_rootvg_op. Please see the alt_rootvg_op man page
and documentation for more details.
Executing command: {/usr/sbin/alt_rootvg_op -S hdisk1}
+-----------------------------------------------------------------------------+
Putting volume group altinst_rootvg to sleep ...
forced unmount of /alt_inst/var
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/ptf
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/home
forced unmount of /alt_inst
Fixing LV control blocks...
Fixing file system superblocks...
[localhost@root:/] lspv
hdisk0          000d32da0b9e6ec2                    rootvg          active
hdisk1          000d32da826d9167                    altinst_rootvg

 

 

[localhost@root:/] alt_disk_install -W hdisk1
+-----------------------------------------------------------------------------+
ATTENTION: calling new module /usr/sbin/alt_rootvg_op. Please see the alt_rootvg_op man page
and documentation for more details.
Executing command: {/usr/sbin/alt_rootvg_op -W -d hdisk1}
+-----------------------------------------------------------------------------+
Waking up altinst_rootvg volume group ...
[localhost@root:/] lspv
hdisk0          000d32da0b9e6ec2                    rootvg          active
hdisk1          000d32da826d9167                    altinst_rootvg  active