kpartx - raw - zfs - mount: wrong fs type

hackmann

Renowned Member
Jan 6, 2013
223
13
83
Hallo,
ich habe eine VM installiert

zfs get all rpool/data/vm-301-disk-0 | grep used

rpool/data/vm-301-disk-0 used 881M -
rpool/data/vm-301-disk-0 usedbysnapshots 56K -
rpool/data/vm-301-disk-0 usedbydataset 881M -
rpool/data/vm-301-disk-0 usedbychildren 0B -
rpool/data/vm-301-disk-0 usedbyrefreservation 0B -
rpool/data/vm-301-disk-0 logicalused 948M

Nun wollte ich auf das Image zugreifen

qm stop 301

kpartx -av /dev/zvol/rpool/data/vm-301-disk-0
add map vm-301-disk-0p1 (253:0): 0 2014 linear 230:0 34
add map vm-301-disk-0p2 (253:1): 0 1048576 linear 230:0 2048
add map vm-301-disk-0p3 (253:2): 0 208664543 linear 230:0 1050624

ls /dev/mapper/
control vm-301-disk-0p1 vm-301-disk-0p2 vm-301-disk-0p3

mount /dev/mapper/vm-301-disk-0p1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vm-301-disk-0p1,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

Hätte jemand einen Rat?

danke
 
Nun wollte ich auf das Image zugreifen
Das image stellt eine disk dar - was darauf installiert ist kommt auf den guest an - hier sieht es aus als wurden 3 Partitionen angelegt - von der Groesse könnte ich mir vorstellen, dass die erste davon (vm-301-disk-0p1) eine bios_boot partition ist und kein Filesystem hat.

was ist denn auf der VM installiert? - wie sehen die Partitionen in der VM aus (wenn Linux/Unix ist das output von `mount`, `df -h` hilfreich)..
sonst würde ich mal versuch die Partition 2 und 3 zu mounten. Bzw. falls ein LVM in dem Gast vorhanden ist die VG mal zu aktivieren (hier hat PVE per default einen filter um zu verhindern, dass Volumegroups von guests auch auf der Node aktivert werden)

Hoffe das hilft!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!