linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Stuart D. Gathman" <stuart@bmsi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] lvm2 and external enclosures
Date: Mon, 20 Jul 2009 00:30:21 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0907200016130.9385@bmsred.bmsi.com> (raw)
In-Reply-To: <4A639532.6050506@cox.net>

On Sun, 19 Jul 2009, Ron Johnson wrote:

> (The purpose of this "exercise" is to implement a backup strategy.)

...

> Any thoughts on getting lvm2 to play nice with dynamic devices?

You have to do "vgchange -an backupvgxx" before removing the 
dynamic volumes.  It is possible to deactivate the vg after
physical removal (which you must do before a vgscan will work),
but it was tricky - the details were posted here a while back.

I created the VG on the full physical device (/dev/sdx, not /dev/sdx1),
and liked the idea of dispensing with the crufty DOS boot sector,
and getting resizable "partitions".

But the whole process is a pain (the two levels of mount/umount/vgchange) 
- and after creating similar backup solutions at 7 sites, I finally decided
that a labeled (so it doesn't matter which device node the drive appears on)
filesystem on /dev/scx1 was the simplest and most reliable way to go.
I keep the filesystem mounted in readonly mode (users are always removing
tapes or usb drives when they aren't supposed to, "Didn't you see the yellow
light flashing???").  I do "mount  -o remount,rw /media/backup" before the
backup script, and "mount -o remount,ro /media/backup" afterward.  I do and
unmount and fsck every day - which ensures that the fs gets clean regularly.

Where USB and other hotswap drives shine with LVM is testing drive failure
recovery.  It is simple and safe (hardware wise) to disconnect a USB
drive to see how your LVM configuration handles the failure.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

  reply	other threads:[~2009-07-20  4:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 21:50 [linux-lvm] lvm2 and external enclosures Ron Johnson
2009-07-20  4:30 ` Stuart D. Gathman [this message]
2009-07-20  5:03   ` Ron Johnson

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=Pine.LNX.4.64.0907200016130.9385@bmsred.bmsi.com \
    --to=stuart@bmsi.com \
    --cc=linux-lvm@redhat.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;
as well as URLs for NNTP newsgroup(s).