public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: aurfalien <aurfalien@gmail.com>
To: xfs@oss.sgi.com
Subject: LVM + XFS + external log + snapshots
Date: Fri, 21 Jun 2013 22:30:31 -0700	[thread overview]
Message-ID: <022467CC-8EB2-41E9-8AF6-46F781882F6B@gmail.com> (raw)

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

             reply	other threads:[~2013-06-22  5:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-22  5:30 aurfalien [this message]
2013-06-22  7:58 ` LVM + XFS + external log + snapshots 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=022467CC-8EB2-41E9-8AF6-46F781882F6B@gmail.com \
    --to=aurfalien@gmail.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox