# chpv -c hdisk1
# lspv
hdisk0 00c843b42d414eb9 rootvg active
hdisk1 00c843b4bb3cf61e rootvg active
# reducevg rootvg hdisk1
0516-016 ldeletepv: Cannot delete physical volume with allocated
partitions. Use either migratepv to move the partitions or
reducevg with the -d option to delete the partitions.
0516-884 reducevg: Unable to remove physical volume hdisk1.
# rmdev -dl hdisk1
Method error (/usr/lib/methods/ucfgdevice):
0514-062 Cannot perform the requested function because the
specified device is busy.
# lspv
hdisk0 00c843b42d414eb9 rootvg active
hdisk1 00c843b4bb3cf61e rootvg active
--------------------------------------分割线---------------------------------------------------------
注:如果有hdisk1有lv参考下边,lv迁移操作,没有lv,直接跳过
# lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
mqmloglv 4 4 00..00..00..00..04 /var/mqm/log
mqmlv 4 4 00..00..00..00..04 /var/mqm
# migratepv -l mqmloglv hdisk1 hdisk0 //迁移mqmloglv从hdisk1到hdisk0
# lslpp -L bos.alt_disk_install.rte //检查是否有安装了alt_disk_install
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
error: incorrect format: unknown tag
Fileset Level State Type Description (Uninstaller)
---------------------------------分割线-------------------------------------------
lslpp: Fileset bos.alt_disk—nstall.rte not installed.
State codes:
A -- Applied.
B -- Broken.
C -- Committed.
E -- EFIX Locked.
O -- Obsolete. (partially migrated to newer version)
? -- Inconsistent State...Run lppchk -v.
Type codes:
F -- Installp Fileset
P -- Product
C -- Component
T -- Feature
R -- RPM Package
E -- Interim Fix
#
------------------------------------分割线-----------------------------------------------
如果返回结果:
lslpp: 0504-132 Fileset bos.alt_disk_install.rte not installed
这里对于安装alt_disk_install,不再详细说明
---------------------------------------------------------------
# alt_disk_install -OCB hdisk1
+-----------------------------------------------------------------------------+
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 -O -B -d "hdisk1"
+-----------------------------------------------------------------------------+
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_fwdump.
Creating logical volume alt_lg_dumplv.
Creating logical volume alt_livedump.
Creating logical volume alt_lv_u01.
Creating logical volume alt_mqmlv.
Creating logical volume alt_mqmloglv.
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/tmp file system.
Creating /alt_inst/u01 file system.
Creating /alt_inst/usr file system.
Creating /alt_inst/var file system.
Creating /alt_inst/var/adm/ras/livedump file system.
Creating /alt_inst/var/adm/ras/platform file system.
Creating /alt_inst/var/mqm file system.
Creating /alt_inst/var/mqm/log 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.
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/mqm/log
forced unmount of /alt_inst/var/mqm/log
forced unmount of /alt_inst/var/mqm
forced unmount of /alt_inst/var/mqm
forced unmount of /alt_inst/var/adm/ras/platform
forced unmount of /alt_inst/var/adm/ras/platform
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/u01
forced unmount of /alt_inst/u01
forced unmount of /alt_inst/tmp
forced unmount of /alt_inst/tmp
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...
#
# lspv
hdisk0 00c843b42d414eb9 rootvg active
hdisk1 00c843b4bb3cf61e altinst_rootvg
# bootlist -m normal -o
cd0
hdisk0 blv=hd5 pathid=0
# lspv -l hdisk1
0516-010 : Volume group must be varied on; use varyonvg command.
将克隆磁盘移植到新服务器。
将hdisk1插入新服务器,新插入的盘不会自动引导系统的启动,需要在分区启动时进入SMS菜单,手动指定磁盘启动。