Mounting a Filesystem
Once we have created the Logical Volume (LV) we need to create a dummy (empty) folder/directory that we will mount the new filesystem as, using the standard mkdir syntax:
mkdir <folder name>
In our example, we want to mount the filesystem as /mnt/raid1, so we create a empty directory with that name:
$ mkdir /mnt/raid1
Now, we can mount the new filesystem as /mnt/raid1 using the mount command:
>mount <Logical Volume Address> <Directory to mount as>
In our example, as we want to mount the LV as /mnt/raid1, the command would be:
$ mount /dev/mapper/MYDATA01-lv01 /mnt/raid1
If all went well, the new filesystem should be mounted on the system - you can check by running df -h:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/homeServer-root
57G 1.1G 53G 2% /
none 2.0G 244K 2.0G 1% /dev
none 2.0G 0 2.0G 0% /dev/shm
none 2.0G 380K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
/dev/sda1 228M 21M 195M 10% /boot
/dev/mapper/MYDATA01-lv01
886G 200M 886G 1% /mnt/raid1Note: that this mount will disappear after a reboot unless you add it into the system boot configuration