Linux-challenges # 1 lab

I am stuck at permanent mounting of xfs on to lvm in Linux course challenge 1 .

“Make sure that this mount point is persistent across reboots with the correct default options.”

I added to /etc/fstab:

UUID=175b6f4-eeba-4de2-95ea-351cfffbabcf /mnt/dba_storage/ xfs rw, nosuid, noydev, auto, nouser, async 0
then sudo mount -a

What am I missing?

I now found solution in one of the posts in github :
I did try
UUID=175b6f4-eeba-4de2-95ea-351cfffbabcf /mnt/dba_storage/ xfs defaults 0 0
earlier.

UUID is not correct for LVs? we have to give /dev/mapper/… I guess for device.

Yup, mount it from the /dev/mapper/... device path.

Device path is of the form

/dev/mapper/<vg-name>-<lv-name>

If you’ve created the volumes correctly, you will see it with

ls -l /dev/mapper
1 Like