public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* LVM + XFS + external log + snapshots
@ 2013-06-22  5:30 aurfalien
  2013-06-22  7:58 ` Stan Hoeppner
  2013-06-23 22:55 ` Dave Chinner
  0 siblings, 2 replies; 8+ messages in thread
From: aurfalien @ 2013-06-22  5:30 UTC (permalink / raw)
  To: xfs

Hi all,

So I have an XFS file system within LVM  which has an external log.

My mount option in FSTAB is;

/dev/vg_spock_data/lv_data	/data	xfs	logdev=/dev/sdc1,nobarrier,logbufs=8,noatime,nodiratime	1 1

All is well no issues and very fast.

Now I'd like to snapshot this bad boy and then run rsnapshot to create a few days backup.

A snapshot volume is created w/o issue;

lvcreate -L250G -s -n datasnapshot /dev/vg_spock_data/lv_data

But when i try to mount the file system;

mount /dev/vg_spock_data/datasnapshot /snapshot -o nouuid,ro

I get this;

mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_anette_data-datasnapshot,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

The command dmesg shows;

XFS (dm-3): filesystem is marked as having an external log; specify logdev on the mount command line.
XFS (dm-3): SB validate failed

So I then use this mount option;

mount /dev/vg_anette_data/datasnapshot /snapshot -o logdev=/dev/sdc1,nouuid,ro

But get this error;

mount: /dev/mapper/vg_spock_data-datasnapshot already mounted or /snapshot busy

And the command dmesg shows;

XFS (dm-3): Invalid device [/dev/sdc1], error=-16

Am I doing something wrong or is this not possible?

I prefer being in error, I often am anyways.

Thanks in advance,

- aurf
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-24  0:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-22  5:30 LVM + XFS + external log + snapshots aurfalien
2013-06-22  7:58 ` Stan Hoeppner
2013-06-22 21:13   ` aurfalien
2013-06-23 22:55 ` Dave Chinner
2013-06-23 23:24   ` Eric Sandeen
2013-06-23 23:39     ` Dave Chinner
2013-06-24  0:33     ` aurfalien
2013-06-24  0:44     ` aurfalien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox