[root@tng3-1 ~]# lvcreate -L2G -n new_logical_volume new_vol_group
Logical volume "new_logical_volume" created
1.4. Creating the File System
The following command creates a GFS file system on the logical volume.
[root@tng3-1 ~]# gfs_mkfs -plock_nolock -j 1
/dev/new_vol_group/new_logical_volume
This will destroy any data on /dev/new_vol_group/new_logical_volume.
Are you sure you want to proceed? [y/n] y
Device:
/dev/new_vol_group/new_logical_volume
Blocksize:
4096
Filesystem Size:
491460
Journals:
1
Resource Groups:
8
Locking Protocol:
lock_nolock
Lock Table:
Syncing...
All Done
The following commands mount the logical volume and report the file system disk space usage.
[root@tng3-1 ~]# mount /dev/new_vol_group/new_logical_volume /mnt
[root@tng3-1 ~]# df
Filesystem
1K-blocks
Used Available Use% Mounted on
/dev/new_vol_group/new_logical_volume
1965840
20
1965820
1% /mnt
2. Creating a Striped Logical Volume
This example creates an LVM striped logical volume called
striped_logical_volume
that
stripes data across the disks at
/dev/sda1
,
/dev/sdb1
, and
/dev/sdc1
.
2.1. Creating the Physical Volumes
Label the disks you will use in the volume groups as LVM physical volumes.
Caution
Chapter 5. LVM Configuration Examples
60
Содержание 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...