← Tips para publicar un anuncio gratis Server time synchronization →
Jorge Grippo

Problem mounting a volume created from a spanshot

This is a quick tip for a condition that is met when you have to restore files in a server from a backed up volume (aka snapshot). When you do this, a problem would arise when you try to mount the new volume.

root@db000:/etc# mount /dev/sdf
mount: wrong fs type, bad option, bad superblock on /dev/sdf,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

What’s wrong? Maybe you already knew this, but I didn’t, and took me ages to discover the problem, under massive pressure to get the server up and running. The problem is that unix volumes need to have a unique id for each volume, and because we create the volume from a snapshot, the id for the restored volume is not unique. The solution is in your fstab, include the nouuid parameter, like this:

/dev/xvdg /RESTORED xfs noatime,nouuid 0 0

And then, successfully mount your restored volume.

Compártelo

Coméntalo en tu Facebook