將第一份OS作好

然後將要複製的HD 加進來

 

#cfgmgr –v

 

# lspv
hdisk0 0001d2613c5c29e9  rootvg active

Hdisk1 0001d2613c5c29a5  rootvg active
hdisk2 0001f0755343a7f3   None
hdisk3 0001fe75533b6410  None

# alt_disk_install –BOC hdisk2 hdisk3  (-O
表示不帶舊有的device target hdisk以避免重複裝置檔)
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_fwdump
Creating /alt_inst/ file system.
Creating /alt_inst/home file system.
Creating /alt_inst/opt 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/platform 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.
Resetting all device attributes.
NOTE: The first boot from altinst_rootvg will prompt to define the new system
console.
forced unmount of /alt_inst/var/adm/ras/platform
forced unmount of /alt_inst/var
forced unmount of /alt_inst/usr
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/opt
forced unmount of /alt_inst/home
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...
Bootlist is set to the boot disk: hdisk2

# lspv
hdisk0 0001d2613c5c29e9  rootvg active

Hdisk1 0001d2613c5c29a5  rootvg active
hdisk2 0001f0755343a7f3   altinst_rootvg
hdisk3 0001fe75533b6410  altinst_rootvg

# alt_disk_install -X
Bootlist is set to the boot disk: hdisk0

 

如有二顆 (ex: hdisk0 & hdisk1二顆作mirror)請補作以下

# Bootlist –m normal hdisk0 hdisk1

# lspv
hdisk0 0001d2613c5c29e9 rootvg active

Hdisk1 0001d2613c5c29a5  rootvg active
hdisk2 0001f0755343a7f3 None
hdisk3 0001fe75533b6410 None

# rmdev -dl hdisk2  (
最好是透過diag hot plug 來移除)
hdisk2 deleted

 

# rmdev -dl hdisk3  (最好是透過diag hot plug 來移除)
hdisk2 deleted

 

取下放到其它lpar 的硬碟位置開機即可

 

創作者介紹
創作者 Thomas 的IBM BLOG 的頭像
thomas5613

Thomas 的IBM BLOG

thomas5613 發表在 痞客邦 留言(0) 人氣( 878 )