[Top] [All Lists]

LVM + XFS + external log + snapshots

To: xfs@xxxxxxxxxxx
Subject: LVM + XFS + external log + snapshots
From: aurfalien <aurfalien@xxxxxxxxx>
Date: Fri, 21 Jun 2013 22:30:31 -0700
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=JCjZm73eRMZzflNBu9ANKuetHCsZf8Eb1yWjGvX6IlY=; b=CHfW23RNXFT8eY2kxoK8G57pNeBrfq0FYqADubrS+xPkQoXRCyLQm+bcAM5px0XM1L QDjSbgCt3YQXsDxWAb06eeP9rrOT2xfb6Q0lYWIRkBQ03wtvN0KcqaMtVvgEtHvxCz5X f7qY1SkgaAU3GcI49/Hc/ZkbiqeNWwwppswyBzGO/hOeJLU0W0hBVnKKNr5Zbm4sqnj8 HjYN0MmF3m2LfeuORoerVMw5aBiOidqkrbTxNx+E8K1fy7Ge4xrPH44S9gulQKNHRkUT GAUxyNKNq0RvOe0K8xbRynbPEEC26Uf21kvQVqgJ7RkCVyh+mxi8BC5C5cmq3ixp8IQW TR1w==
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 
      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
<Prev in Thread] Current Thread [Next in Thread>