Hi,
i have installed a second Hard Disk on my Host-System.
For this Disk i created the volume group "Test-VG" on the Host System.
About the Proxmox Webinterface i added a new Storage: Add -> LVM group -> ID: "Test_LVM" -> Volume Group: "Test-VG".
Then i installed a new Hard Disk in my Openmediavault-VM (NAS) -> Bus: "VIRTIO" -> Storage: "Test_LVM".
Now there is a new Logical Volume named "vm-101-disk-1".
Now my Questions:
If i started my VM and go to the Openmediavault Webinterface, there i can see my new Hard Disk. I created a Filesystem (ext4) on it an all works correct. But when i turn off the VM and want to mount the Filesystem of the LV direct on the Host, then it does not work:
But when i create the ext4 Filesystem for the LV "vm-101-disk-1" direct on the Host System ("mkfs -t ext4 -q /dev/Test-VG/vm-101-disk-1"), i can mount it on the Host System (of course when the VM is stopped!), or in VM.
Why is it so?
Alex
i have installed a second Hard Disk on my Host-System.
For this Disk i created the volume group "Test-VG" on the Host System.
About the Proxmox Webinterface i added a new Storage: Add -> LVM group -> ID: "Test_LVM" -> Volume Group: "Test-VG".
Then i installed a new Hard Disk in my Openmediavault-VM (NAS) -> Bus: "VIRTIO" -> Storage: "Test_LVM".
Now there is a new Logical Volume named "vm-101-disk-1".
Now my Questions:
If i started my VM and go to the Openmediavault Webinterface, there i can see my new Hard Disk. I created a Filesystem (ext4) on it an all works correct. But when i turn off the VM and want to mount the Filesystem of the LV direct on the Host, then it does not work:
mount -t ext4 /dev/Test-VG/vm-101-disk-1 /mnt/test/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/Test--VG-vm--101--disk--1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
But when i create the ext4 Filesystem for the LV "vm-101-disk-1" direct on the Host System ("mkfs -t ext4 -q /dev/Test-VG/vm-101-disk-1"), i can mount it on the Host System (of course when the VM is stopped!), or in VM.
Why is it so?
Alex