3.4. Creating the New Logical Volume
After creating the new volume group, you can create the new logical volume
yourlv
.
[root@tng3-1 ~]# lvcreate -L5G -n yourlv yourvg
Logical volume "yourlv" created
3.5. Making a File System and Mounting the New Logical
Volume
You can make a file system on the new logical volume and mount it.
[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
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
4. Removing a Disk from a Logical Volume
This example shows how you can remove a disk from an existing logical volume, either to
Chapter 5. LVM Configuration Examples
64
Содержание GLOBAL FILE SYSTEM 5.0
Страница 1: ...LVM Administrator s Guide Configuration and Administration 5 0 ISBN N A Publication date...
Страница 4: ...LVM Administrator s Guide...
Страница 8: ...viii...
Страница 18: ...6...
Страница 28: ...16...
Страница 32: ...20...
Страница 80: ...68...
Страница 90: ...78...
Страница 92: ...80...
Страница 94: ...82...
Страница 112: ...100...