Creating The File System; Creating A Striped Logical Volume; Creating The Physical Volumes - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

Chapter 5. LVM Configuration Examples
[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:
Blocksize:
Filesystem Size:
Journals:
Resource Groups:
Locking Protocol:
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
/dev/new_vol_group/new_logical_volume

2. Creating a Striped Logical Volume

This example creates an LVM striped logical volume called
stripes data across the disks at

2.1. Creating the Physical Volumes

Label the disks you will use in the volume groups as LVM physical volumes.
Caution
60
/dev/new_vol_group/new_logical_volume
4096
491460
1
8
lock_nolock
1K-blocks
Used Available Use% Mounted on
1965840
20
,
/dev/sda1
/dev/sdb1
1965820
1% /mnt
striped_logical_volume
, and
.
/dev/sdc1
that

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents