linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Brian Strand <bstrand@switchmanagement.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Re: LVM on an external USB device - why not?
Date: Tue, 16 Oct 2007 23:26:33 +0000	[thread overview]
Message-ID: <ff3hb9$7rt$1@ger.gmane.org> (raw)
In-Reply-To: <471351AD.4070406@ianburnett.com>

Ian Burnett wrote:
> My current system configuration is a 250GB internal IDE HDD, managed
> using LVM2 under Fedora Core 6. What I would like to do is to put this
> disk into an external USB enclosure to reduce heat generation inside the
> PC. Another reason is to allow the addition of extra disks very easily
> (current case only has room for 1x 3.5" HDD).
> 
> Once the USB drive is connected, I will be performing the initial boot
> stages off a small (2GB) solid-state CF disk, so I don't necessarily
> need the full "boot from USB" capabilities.
> 
> I can't see any problems in doing so myself. I realise that if
> additional usb-storage devices are added, then the raw device may change
> from /dev/sda to /dev/sdb, but with LVM using PV UUIDs to locate
> devices, won't that be irrelevant?
> 
> Are there any caveats to doing this? I haven't seen anything
> particularly relevant on the archives of this mailing list, and I've
> Googled around the subject. I did discover a couple of boot-from-USB
> walkthroughs scattered around the web which unhelpfully said "don't do
> it" without giving any particular reasons. That was from some old posts
> (c. 2005), without any citations, and didn't mention LVM2 so could have
> been based on LVM1.
> 
> All advice welcomed.
> 
> Ian.
> 

(Apologies in advance if this shows up on the list twice.)

While not often usually from USB, I've used LVM2 on USB devices with no
problems (in fact I rarely use them without LVM due to the improved
manageability, as you hinted at).  I'd recommend having all the
necessary USB goo (er, kernel modules) in your initrd regardless of
whether you are actually booting off of the USB device, as LVM doesn't
like to activate a vg with missing pvs.

Best regards,
Brian

      parent reply	other threads:[~2007-10-16 23:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15 11:40 [linux-lvm] LVM on an external USB device - why not? Ian Burnett
2007-10-15 12:00 ` Janne Peltonen
2007-10-16 23:26 ` Brian Strand [this message]

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='ff3hb9$7rt$1@ger.gmane.org' \
    --to=bstrand@switchmanagement.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).