alt 뜨는 방법
#alt_disk_install -CB hdisk2
hostname[root]:/usr> lsvg
rootvg
nimvg
hostname[root]:/usr/TL05> lsdev -Cc disk
hdisk0 Available Virtual SCSI Disk Drive
hdisk1 Available 01-00-00 SAS Disk Drive
hdisk2 Available 01-00-00 SAS Disk Drive
hdisk3 Available 01-00-00 SAS Disk Drive
hostname[root]:/usr> lsmpio -ql hdisk0
Device: hdisk0
Vendor Id: AIX
Product Id: VDASD
Revision: 0001
Capacity: 50G
hostname[root]:/usr> lsmpio -ql hdisk2
Device: hdisk2
Vendor Id: IBM
Product Id:
Revision: 6209
Capacity: 279G
Volume Serial: 500xxxxxxxx(Page 83 NAA)
hostname[root]:/usr> lspv
hdisk0 00f8a71529638400 rootvg active
hdisk1 00f8a7153cxxxxxx nimvg active
hdisk2 00f8a7153ceeeeee None
hdisk3 00f832bfffffffff None
alt뜨는 리스트 확인 방법
1)프로세스 관련
hostname[root]:/> ps -ef|grep -i alt
root 3997722 9175258 3 11:30:41 pts/0 0:00 /usr/bin/ksh /usr/sbin/alt_disk_copy -B -d hdisk2
root 9437274 3997722 0 11:31:31 pts/0 0:00 crfs -v jfs2 -d /dev/alt_hd10opt -m /alt_inst/opt -a agblksize -a ea -a efs -Ayes
root 9764984 9437274 4 11:31:31 pts/0 0:00 /bin/ksh /usr/sbin/chlv -L /alt_inst/opt alt_hd10opt
root 11010242 4522190 0 11:31:32 pts/1 0:00 grep -i alt
2)loop명령어
while true
>do
>df -g
>sleep 2
>done
hostname[root]:/usr> alt_disk_install -CB hdisk2
+-----------------------------------------------------------------------------+
ATTENTION: calling new module /usr/sbin/alt_disk_copy. Please see the alt_disk_copy man page
and documentation for more details.
Executing command: {/usr/sbin/alt_disk_copy -B -d "hdisk2"}
+-----------------------------------------------------------------------------+
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
Creating logical volume alt_hd9var
Creating logical volume alt_hd3
Creating logical volume alt_hd1
Creating logical volume alt_hd10opt
Creating logical volume alt_hd11admin
Creating logical volume alt_lg_dumplv
Creating logical volume alt_livedump
Creating logical volume alt_fslv00
Creating /alt_inst/ file system.
Creating /alt_inst/admin file system.
Creating /alt_inst/home file system.
Creating /alt_inst/opt file system.
Creating /alt_inst/tftpboot file system.
Creating /alt_inst/tmp file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/var file system.
Creating /alt_inst/var/adm/ras/livedump 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...
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
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tftpboot
forced unmount of /alt_inst/tftpboot
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/admin
forced unmount of /alt_inst/admin
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...
,.,,
//세션 끊기고 이미 alt떠진 것을 확인된다.
<ipl_varyon -i //alt 뜨기 전 상태>
hostname[root]:/> ipl_varyon -i
[S 9764872 9175258 04/24/-27-03:34:24:153 ipl_varyon.c 1313] ipl_varyon -i
PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 YES 00f8a71523333000000000000000000 00f8a71500004c00
hdisk1 NO 00f8a7153c71222110000000000000000 00f8a71500004c00
hdisk2 YES 00f8a7153c33325d0000000000000000 00f8a71500004c00
hdisk3 YES 00f832b74f7edc240000000000000000 00f772a200004c00
[E 9764872 0:188 ipl_varyon.c 1454] ipl_varyon: exited with rc=0
<ipl_varyon -i //alt뜬 후상태>
[S 9961606 3997810 06/07/22-12:57:44:205 ipl_varyon.c 1313] ipl_varyon -i
PVNAME BOOT DEVICE PVID VOLUME GROUP ID
hdisk0 YES 00f8a71523333000000000000000000 00f8a71500004c00
hdisk1 NO 00f8a7153c71222110000000000000000 00f8a71500004c00
hdisk2 YES 00f8a7153c33325d0000000000000000 00f8a71500004c00
hdisk3 YES 00f832b74f7edc240000000000000000 00f772a200004c00
[E 9961606 0:210 ipl_varyon.c 1454] ipl_varyon: exited with rc=0
hostname[root]:/> bootlist -m normal -o
hdisk0 pathid=0
ent0 speed=auto duplex=auto bserver=000.000.000.000 client=000.000.000.000 gateway=000.000.000.000 vlan_tag=5
hostname[root]:/> lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 128 128 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 16 16 1 open/syncd /
hd2 jfs2 192 192 1 open/syncd /usr
hd9var jfs2 16 16 1 open/syncd /var
hd3 jfs2 16 16 1 open/syncd /tmp
hd1 jfs2 16 16 1 open/syncd /home
hd10opt jfs2 16 16 1 open/syncd /opt
hd11admin jfs2 2 2 1 open/syncd /admin
lg_dumplv sysdump 16 16 1 open/syncd N/A
livedump jfs2 4 4 1 open/syncd /var/adm/ras/livedump
fslv00 jfs2 160 160 1 open/syncd /tftpboot
hostname[root]:/> lsvg -o
nimvg
rootvg
hostname[root]:/> lsvg
rootvg
nimvg
altinst_rootvg
hostname[root]:/> lsvg -l altinst_rootvg
0516-010 : Volume group must be varied on; use varyonvg command.
hostname[root]:/> lspv
hdisk0 00f8a71529638400 rootvg active
hdisk1 00f8a7153c791017 nimvg active
hdisk2 00f8a7153c79105d altinst_rootvg
hdisk3 00f832b74f7edc24 None
방법1) W: Wakeup, S: Stop 옵션을 써서 사용을 volume Group 에 사용하지 않게 하기
hostname[root]:/> alt_disk_install -W hdisk2
+-----------------------------------------------------------------------------+
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 hdisk2}
+-----------------------------------------------------------------------------+
Waking up altinst_rootvg volume group ...
hqotnimbk1[root]:/> lspv
hdisk0 00f8a71529638400 rootvg active
hdisk1 00f8a7153c791017 nimvg active
hdisk2 00f8a7153c79105d altinst_rootvg active
hdisk3 00f832b74f7edc24 None
hostname[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 16 16 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 24 24 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 2 2 1 open/syncd /alt_inst/home
alt_hd10opt jfs2 2 2 1 open/syncd /alt_inst/opt
alt_hd11admin jfs2 1 1 1 open/syncd /alt_inst/admin
alt_lg_dumplv sysdump 2 2 1 closed/syncd N/A
alt_livedump jfs2 1 1 1 open/syncd /alt_inst/var/adm/ras/livedump
alt_fslv00 jfs2 20 20 1 open/syncd /alt_inst/tftpboot
hhostname[root]:/> alt_disk_install -S hdisk2
+-----------------------------------------------------------------------------+
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 hdisk2}
+-----------------------------------------------------------------------------+
Putting volume group altinst_rootvg to sleep ...
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
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tftpboot
forced unmount of /alt_inst/tftpboot
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/admin
forced unmount of /alt_inst/admin
forced unmount of /alt_inst
forced unmount of /alt_inst
Fixing LV control blocks...
Fixing file system superblocks...
hostname[root]:/> lspv
hdisk0 00f8a71529638400 rootvg active
hdisk1 00f8a7153c712121 nimvg active
hdisk2 00f8a7153c734343 altinst_rootvg
hdisk3 00f832b74f7abcde None
hostname[root]:/> bootlist -om normal
hdisk0 pathid=0
ent0 speed=auto duplex=auto bserver=000.000.000.000 client=000.000.000.000 gateway=000.000.000.000 vlan_tag=5
방법1) W: Wakeup, S: Stop 옵션을 써서 사용 후 altinst_rootvg를 volume Group 에 사용하지 않게 하기
그러나 상태만 active, -> none 상태만 바꿔주므로 실제로는 당연히 X 옵션을 써 줘야 한다.
'OS Unix [IBM aix] > OS 및 TL SP upgrade' 카테고리의 다른 글
OS AIX LPAR 설치 (0) | 2022.06.13 |
---|