Chapter 5. LVM Configuration Examples
58
/dev/sdb1 myvg lvm2 a- 17.15G 15.15G 2.00G
/dev/sdc1 myvg lvm2 a- 17.15G 15.15G 2.00G
We want to move the extents of
/dev/sdb1
to a new device,
/dev/sdd1
.
5.4.2.1. Creating the New Physical Volume
Create a new physical volume from
/dev/sdd1
.
[root@tng3-1 ~]#
pvcreate /dev/sdd1
Physical volume "/dev/sdd1" successfully created
5.4.2.2. Adding the New Physical Volume to the Volume Group
Add
/dev/sdd1
to the existing volume group
myvg
.
[root@tng3-1 ~]#
vgextend myvg /dev/sdd1
Volume group "myvg" successfully extended
[root@tng3-1]#
pvs -o+pv_used
PV VG Fmt Attr PSize PFree Used
/dev/sda1 myvg lvm2 a- 17.15G 7.15G 10.00G
/dev/sdb1 myvg lvm2 a- 17.15G 15.15G 2.00G
/dev/sdc1 myvg lvm2 a- 17.15G 15.15G 2.00G
/dev/sdd1 myvg lvm2 a- 17.15G 17.15G 0
5.4.2.3. Moving the Data
Use the
pvmove
command to move the data from
/dev/sdb1
to
/dev/sdd1
.
[root@tng3-1 ~]#
pvmove /dev/sdb1 /dev/sdd1
/dev/sdb1: Moved: 10.0%
...
/dev/sdb1: Moved: 79.7%
...
/dev/sdb1: Moved: 100.0%
[root@tng3-1]#
pvs -o+pv_used
PV VG Fmt Attr PSize PFree Used
/dev/sda1 myvg lvm2 a- 17.15G 7.15G 10.00G
/dev/sdb1 myvg lvm2 a- 17.15G 17.15G 0
/dev/sdc1 myvg lvm2 a- 17.15G 15.15G 2.00G
/dev/sdd1 myvg lvm2 a- 17.15G 15.15G 2.00G
5.4.2.4. Removing the Old Physical Volume from the Volume Group
After you have moved the data off
/dev/sdb1
, you can remove it from the volume group.
Содержание CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Страница 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Страница 6: ...vi ...
Страница 12: ...xii ...
Страница 24: ...12 ...
Страница 62: ...50 ...
Страница 72: ...60 ...
Страница 82: ...70 ...
Страница 84: ...72 ...
Страница 86: ...74 ...
Страница 96: ...84 ...
Страница 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Страница 104: ...92 ...
Страница 108: ...96 ...