Are you sure you want to proceed? [y/n] y
Device:
/dev/striped_vol_group/striped_logical_volume
Blocksize:
4096
Filesystem Size:
492484
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/striped_vol_group/striped_logical_volume /mnt
[root@tng3-1 ~]# df
Filesystem
1K-blocks
Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
13902624
1656776
11528232
13% /
/dev/hda1
101086
10787
85080
12% /boot
tmpfs
127880
0
127880
0% /dev/shm
/dev/striped_vol_group/striped_logical_volume
1969936
20
1969916
1% /mnt
3. Splitting a Volume Group
In this example, an existing volume group consists of three physical volumes. If there is enough
unused space on the physical volumes, a new volume group can be created without adding new
disks.
In the initial set up, the logical volume
mylv
is carved from the volume group
myvol
, which in
turn consists of the three physical volumes,
/dev/sda1
,
/dev/sdb1
, and
/dev/sdc1
.
After completing this procedure, the volume group
myvg
will consist of
/dev/sda1
and
/dev/sdb1
. A second volume group,
yourvg
, will consist of
/dev/sdc1
.
3.1. Determining Free Space
You can use the
pvscan
command to determine how much free space is currently available in
the volume group.
[root@tng3-1 ~]# pvscan
PV /dev/sda1
VG myvg
lvm2 [17.15 GB / 0
free]
PV /dev/sdb1
VG myvg
lvm2 [17.15 GB / 12.15 GB free]
PV /dev/sdc1
VG myvg
lvm2 [17.15 GB / 15.80 GB free]
Total: 3 [51.45 GB] / in use: 3 [51.45 GB] / in no VG: 0 [0
]
Chapter 5. LVM Configuration Examples
62
Содержание 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...