Many thanks for a quick reply, see also https://bugzilla.redhat.com/show_bug.cgi?id=1413499#c5 Looks like the same issue as mine. But any way - a full log of guestmount, running it with -v -x and host + VM info are attached, probably I've missed something important in the output. Thank you! 29.03.2017, 15:47, "Pino Toscano" : Hi, On Wednesday, 29 March 2017 06:28:06 CEST Гюльнара Невежина wrote: Does anybody know if the package libguestfs-xfs exists for CentOS 6? In RHEL/CentOS 6, the support for XFS filesystems in libguestfs is provided already by the appliance in the 'libguestfs' package. I faced the problem when tried to change passwd for XFS virtual machine based on ext4 CentOS 6 parent server: guestmount -a /dev/lvm/xfs.test -i /tmp/cp_mount/xfs.test guestmount: no operating system was found on this disk If using guestfish '-i' option, remove this option and instead use the commands 'run' followed by 'list-filesystems'. You can then mount filesystems you want by hand using the 'mount' or 'mount-ro' command. If using guestmount '-i', remove this option and choose the filesystem(s) you want to see by manually adding '-m' option(s). Use 'virt-filesystems' to see what filesystems are available. If using other virt tools, this disk image won't work with these tools. Use the guestfish equivalent commands (see the virt tool manual page). I found that libguestfs-xfs in old Ubuntu distros is included inside libguestfs main package but not sure if the same is valid for CentOS 6. Right now I can't update my parent server so any advices will be greatly appreciated. Which host system was the XFS filesystem created on? The xfs module in the RHEL/CentOS 6 kernel is too old to support XFS v5 filesystems created by more recent kernels -- see also https://bugzilla.redhat.com/show_bug.cgi?id=1413499#c5 for few more details. In case your filesystem was created on a RHEL/CentOS 6 host/VM, please provide a full log of guestmount, running it with -v -x. -- Pino Toscano
On Wednesday, 29 March 2017 11:04:09 CEST Гюльнара Невежина wrote:> Many thanks for a quick reply, > > > see also > > https://bugzilla.redhat.com/show_bug.cgi?id=1413499#c5 > > Looks like the same issue as mine. But any way - a full log of > guestmount, running it with -v -x and host + VM info are attached, > probably I've missed something important in the output.Indeed, the log shows that as well: mount -o ro /dev/sda2 /sysroot/ [ 2.673870] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [ 2.674968] SGI XFS Quota Management subsystem [ 2.675522] XFS (sda2): bad version [ 2.675754] XFS (sda2): SB validate failed mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so guestfsd: error: /dev/sda2 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so guestfsd: main_loop: proc 73 (mount_ro) took 0.07 seconds so you need a RHEL/CentOS 7 (or another distro with a kernel >= 3.16) to mount that XFS filesystem. -- Pino Toscano
<div>Excuse me for plain text log in previous message, something happened with an email attachent.</div><div>Thank you for your help, the situation is clear now.</div><div> </div><div>29.03.2017, 17:25, "Pino Toscano" <<span>ptoscano@redhat.com</span>>:</div><blockquote type="cite"><p>On Wednesday, 29 March 2017 11:04:09 CEST Гюльнара Невежина wrote:</p><blockquote> Many thanks for a quick reply,<br /><br /> > see also<br /> > <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1413499#c5">https://bugzilla.redhat.com/show_bug.cgi?id=1413499#c5</a><br /><br /> Looks like the same issue as mine. But any way - a full log of<br /> guestmount, running it with -v -x and host + VM info are attached,<br /> probably I've missed something important in the output.</blockquote><p><br />Indeed, the log shows that as well:<br /><br /> mount -o ro /dev/sda2 /sysroot/<br /> [ 2.673870] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled<br /> [ 2.674968] SGI XFS Quota Management subsystem<br /> [ 2.675522] XFS (sda2): bad version<br /> [ 2.675754] XFS (sda2): SB validate failed<br /> mount: wrong fs type, bad option, bad superblock on /dev/sda2,<br /> missing codepage or helper program, or other error<br /> In some cases useful info is found in syslog - try<br /> dmesg | tail or so<br /><br /> guestfsd: error: /dev/sda2 on / (options: 'ro'): mount: wrong fs type, bad option, bad superblock on /dev/sda2,<br /> missing codepage or helper program, or other error<br /> In some cases useful info is found in syslog - try<br /> dmesg | tail or so<br /> guestfsd: main_loop: proc 73 (mount_ro) took 0.07 seconds<br /><br />so you need a RHEL/CentOS 7 (or another distro with a kernel >= 3.16)<br />to mount that XFS filesystem.<br /> </p><span>--<br />Pino Toscano</span></blockquote>