This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
aix:alt_disk [2021/01/01 21:24] 127.0.0.1 external edit |
aix:alt_disk [2022/09/26 09:08] (current) manu [Clone rootvg] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== AIX OS alternate disk operations ====== | ====== AIX OS alternate disk operations ====== | ||
| + | |||
| + | ===== Clone rootvg ===== | ||
| + | |||
| + | To clone the running rootvg to hdisk3 and hdisk4 (in case of mirrored rootvg), and execute update_all on all updates from /updates. Disks hdisk3 and 4 must be empty | ||
| + | <cli prompt='>'> | ||
| + | root@nimmig /root> alt_disk_copy -d "hdisk3 hdisk4" -b update_all -l /updates | ||
| + | </cli> | ||
| + | |||
| + | Use flags: | ||
| + | * -B: do not update the bootlist | ||
| + | * -g: Skips disk bootability checks | ||
| + | |||
| + | alt_disk_copy -d <hdisk to clone rootvg> this will clone the rootvg to the specified disk | ||
| + | alt_disk_copy -e /etc/exclude.rootvg -d <hdisk> this will use the exclude list during the cloning | ||
| + | alt_disk_copy -T -d <hdisk> it will convert jfs to jfs2 on the new target disk | ||
| + | alt_rootvg_op -X <cloned rootvg to destroy> this will destroy the cloned rootvg (alt_rootvg_op -X altinst_rootvg) | ||
| + | alt_rootvg_op -W -d <hdisk> this will wake up a disk (cloned filesystems will be mounted with prefix /alt_) | ||
| + | alt_rootvg_op -S -t <hdisk> this will put cloned rootvg to sleep (before that it will do a bosboot) | ||
| + | |||
| + | Use a custom image.data | ||
| + | # alt_disk_copy -d hdiskX -i /image.data -B | ||
| + | |||
| ===== Upgrade an OS disk ===== | ===== Upgrade an OS disk ===== | ||