coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 21 guests online

Newest Member

beyondimagem

Hit Counter
9133536 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

alt_disk_install - how to clone the currently running system to an alternate disk in IBM AIX
Description

To clone the currently running AIX on an alternate disk, use the alt_disk_install command.

1) Verify you have the packages required:

# lslpp -l bos.alt_disk*
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.alt_disk_install.boot_images
5.2.0.40 APPLIED Alternate Disk Installation
Disk Boot Images
bos.alt_disk_install.rte 5.2.0.40 APPLIED Alternate Disk Installation
Runtime

2) Verify which disk holds the current running AIX (hdisk1 in my case) and which will hold the clone (hdisk0 in my case):

# lspv
hdisk0 000b3a3de79af4d1 None
hdisk1 0002404a5a02dd05 rootvg active

3) Verify your current settings:

# 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 32 32 1 open/syncd N/A
paging00 paging 32 32 1 open/syncd N/A
hd8 jfslog 1 1 1 open/syncd N/A
hd4 jfs 2 2 1 open/syncd /
hd2 jfs 49 49 1 open/syncd /usr
hd9var jfs 3 3 1 open/syncd /var
hd3 jfs 9 9 1 open/syncd /tmp
hd1 jfs 1 1 1 open/syncd /home
hd10opt jfs 3 3 1 open/syncd /opt
hd7copie dump 8 8 1 open/syncd N/A

# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000b3a3d00004c00000000fa0fbff242
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 271 (17344 megabytes)
MAX LVs: 256 FREE PPs: 130 (8320 megabytes)
LVs: 11 USED PPs: 141 (9024 megabytes)
OPEN LVs: 10 QUORUM: 2
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable

4) Start the cloning process:

# alt_disk_install -C hdisk0

5) Run some post cloning checks:

# lsvg
altinst_rootvg
rootvg

# lsvg -l altinst_rootvg
0516-010 : Volume group must be varied on; use varyonvg command.

# lspv
hdisk0 000b3a3de79af4d1 altinst_rootvg
hdisk1 0002404a5a02dd05 rootvg active

6) Ensure you will boot to clone disk:

# bootlist -m normal -o
hdisk0

7) Reboot:

# shutdown -Fr

8) Remove the old_rootvg volume group definition from the ODM database:

# alt_disk_install -X old_rootvg

9) Some more verifications:

# lspv
hdisk0 000b3a3de79af4d1 rootvg active
hdisk1 0002404a5a02dd05 None

# bootlist -m normal -o
hdisk0

# 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 32 32 1 open/syncd N/A
paging00 paging 32 32 1 open/syncd N/A
hd8 jfslog 1 1 1 open/syncd N/A
hd4 jfs 2 2 1 open/syncd /
hd2 jfs 49 49 1 open/syncd /usr
hd9var jfs 3 3 1 open/syncd /var
hd3 jfs 9 9 1 open/syncd /tmp
hd1 jfs 1 1 1 open/syncd /home
hd10opt jfs 3 3 1 open/syncd /opt
hd7copie dump 8 8 1 open/syncd N/A
Example

alt_disk_install -C hdisk0; shutdown -Fr; alt_disk_install -X old_rootvg

Return to search results

Random coolcommands

coolcommand: mkrep - how to create virtual media repositories in IBM VIO Server
Example: mkrep -sp rootvg -size 16G
[show me the details]
coolcommand: how to check FC adpater and SAN switch NPIV settings in VIOS Server
Example: lsnports
[show me the details]
coolcommand: ntpdate - to syncronise your server time to a time server
Example: ntpdate timeserver.domain.com
[show me the details]
coolcommand: wtmpfix - how to examine and correct utmpx/wtmpx format files
Example: wtmpfix /var/adm/wtmpx
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum