Creating a New Volume on the Server

Please Note:

The text on this page was translated by translation software. A revised version from our editors will be available soon.

This article explains how to create a new volume on your server.

You can change the partitioning according to your wishes.

Please note: This article describes deep changes to your server's file system. We therefore strongly recommend that you create a data backup before you start making these changes.

Step 1

For example, create a logical volume with 20 GB and the name lv00 within the VolumeGroup vg00:

s12345678 ~]# lvcreate -L 20G -n lv00 vg00
Logical volume "lv00" created
Step 2

Now create a file system (file system) on the volume with e.g. mkfs.xfs.

s12345678 ~]# mkfs.xfs /dev/vg00/lv00
meta-data=/dev/vg00/lv00 isize=256 agcount=16, agsize=327680 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=5242880, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=2560, version=1
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
step 3

Now mount the partition as usual:

s12345678 ~]# mkdir /lv00
s12345678 ~]# mount -t xfs /dev/vg00/lv00 /lv00

Please note: Think also of a corresponding entry in fstab