I have a LVM2 Volume Group 'vgXEN' with a Logical Volume in it called 'test-disk'.
This is the output of lvdisplay:
--- Logical volume --- LV Path /dev/vgXEN/test-disk LV Name test-disk VG Name vgXEN LV UUID lHSgfx-wnY2-OtRO-zw7l-9SFA-mnht-KgK9MO LV Write Access read/write LV Creation host, time DRAKE, 2013-08-26 12:02:08 +0200 LV Status available # open 0 LV Size 10.00 GiB Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 4096 Block device 253:4
And this is the output of lvscan:
ACTIVE '/dev/vgXEN/test-disk' [10.00 GiB] inherit
Now when i try to mount this logical volume with the command i get an error:
mount /dev/vgXEN/test-disk /mnt/test mount: you must specify the filesystem type
My operating system is 'Linux DRAKE 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux'.
Searched the Internet but couldn't find anything useful. Can anybody point me in the right direction please ? Thx !
The whole problem is related to storing XEN images and the way i want to backup them (via snapshot / mounting). Below you can read what i did wrong and the way it should be done.
What i did wrong
I've created 1 logical volume per XEN image, thus storing the disk and swap partition into 1 LV:
When you try to mount this LV it tells you 'mount: you must specify the filesystem type' and nothing happens of course. This is because the mount program doesn't know how to read partition tables inside a LV as the people stated in the answers below.
The way to do it
Create 1 logical volume per partition, thus storing the disk into 1 LV and the partition into 1 LV:
It's now possible to format these logical volumes and use them into your images as storage. Once formatted you are also able to mount them with this simple command
mount /dev/vgXEN/test-disk /mnt/test