- 论坛徽章:
- 0
|
本帖最后由 juming1983 于 2010-03-29 23:36 编辑
我有一台B50,有两个硬盘,
root@ibmb50:/>lspv
hdisk0 000d871d0005dd01 rootvg active
hdisk1 000d871d0014be46 rootvg active
我想删除rootvg中的hdisk1,但failed,请问各位大大该如何解决。
root@ibmb50:/>smit reducevg
Remove a Physical Volume from a Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* VOLUME GROUP name rootvg
* PHYSICAL VOLUME names [hdisk1] +
FORCE deallocation of all partitions on no +
this physical volume?
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
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.
----------------------------------------------------------------------
root@ibmb50:/>reducevg -d rootvg hdisk1
0516-914 rmlv: Warning, all data belonging to logical volume
hd9var on physical volume hdisk1 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
0516-1008 rmlv: Logical volume hd9var must be closed. If the logical
volume contains a filesystem, the umount command will close
the LV device.
0516-884 reducevg: Unable to remove physical volume hdisk1.
root@ibmb50:/>lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd3 93 93 00..00..09..84..00 /tmp
hd9var 1 1 00..00..01..00..00 /var
hd1 8 8 00..05..00..03..00 /home
--------------------------------------------------------------
解决方案:
将hdisk1的数据复制到hdisk0
Move Contents of a Physical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* SOURCE physical volume name hdisk0
* DESTINATION physical volumes [hdisk1] +
Move only data belonging to this [] +
LOGICAL VOLUME?
Remove a Physical Volume from a Volume Group
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* VOLUME GROUP name rootvg
* PHYSICAL VOLUME names [hdis10] +
FORCE deallocation of all partitions on no +
this physical volume?
root@ibmb50:/>lspv
hdisk0 000d871d0005dd01 rootvg active
hdisk1 000d871d0014be46 None |
|