
Chapter 5. LVM Configuration Examples
56
[root@tng3-1 ~]#
gfs_mkfs -plock_nolock -j 1 /dev/yourvg/yourlv
This will destroy any data on /dev/yourvg/yourlv.
Are you sure you want to proceed? [y/n]
y
Device: /dev/yourvg/yourlv
Blocksize: 4096
Filesystem Size: 1277816
Journals: 1
Resource Groups: 20
Locking Protocol: lock_nolock
Lock Table:
Syncing...
All Done
[root@tng3-1 ~]#
mount /dev/yourvg/yourlv /mnt
5.3.6. Activating and Mounting the Original Logical Volume
Since you had to deactivate the logical volume
mylv
, you need to activate it again before you can
mount it.
root@tng3-1 ~]#
lvchange -a y mylv
[root@tng3-1 ~]#
mount /dev/myvg/mylv /mnt
[root@tng3-1 ~]#
df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/yourvg/yourlv 24507776 32 24507744 1% /mnt
/dev/myvg/mylv 24507776 32 24507744 1% /mnt
5.4. Removing a Disk from a Logical Volume
This example shows how you can remove a disk from an existing logical volume, either to replace the
disk or to use the disk as part of a different volume. In order to remove a disk, you must first move the
extents on the LVM physical volume to a different disk or set of disks.
5.4.1. Moving Extents to Existing Physical Volumes
In this example, the logical volume is distributed across four physical volumes in the volume group
myvg
.
[root@tng3-1]#
pvs -o+pv_used
PV VG Fmt Attr PSize PFree Used
/dev/sda1 myvg lvm2 a- 17.15G 12.15G 5.00G
/dev/sdb1 myvg lvm2 a- 17.15G 12.15G 5.00G
Summary of Contents for CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Page 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Page 6: ...vi ...
Page 12: ...xii ...
Page 24: ...12 ...
Page 62: ...50 ...
Page 72: ...60 ...
Page 82: ...70 ...
Page 84: ...72 ...
Page 86: ...74 ...
Page 96: ...84 ...
Page 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Page 104: ...92 ...
Page 108: ...96 ...