From: Andy Smith <andy@strugglers.net>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Best way to image devices in an LVM environment
Date: Sun, 27 Aug 2006 04:42:08 +0000 [thread overview]
Message-ID: <20060827044208.GL1011@strugglers.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]
Hello,
I have a server I'm currently finalising the setup of, which uses
two 80G SATA drives in a RAID-1 (md) with LVM on top. When I've got it
how I want it I need to replace the 80G drives with a much larger
pair.
Now, I've kept notes about my setup of course so I can just put the
new disks in and do it all over again, but that strikes me as a big
waste of time.
I also of course have space elsewhere to take an image of the md
devices with dd and I could copy them back over the top once md is
set up again on the new disks. The majority of space though is in
my single LVM volume group and only 18.5G of this 72.5G is used, so
taking an 80G image seems to also be rather a waste of time.
Here's the setup:
/dev/md0 (sda1, sdb1) is swap
/dev/md1 (sda2, sdb2) is /boot
/dev/md2 (sda3, sdb3) is /
/dev/md4 (sda5, sdb5) is an LVM PV and VG 'mainvg'
Everything else is LVs within mainvg and all filesystems are ext3.
So how would you accomplish the task of replacing sda and sdb with
larger disks in the least amount of effort? Downtime is not a
problem, taking backups of the data is not a problem, booting off a
live cd is not a problem; the goal is to find the least
labour-intensive way to do this.
The best I can think of booting off a live cd, taking a dd of each
md device to another server, installing the new drives, setting up
the md devices again and then overwriting them with the images.
Will I run into problems with their UUIDs being overwritten?
Cheers,
Andy
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2006-08-27 4:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-27 4:42 Andy Smith [this message]
2006-08-27 5:20 ` [linux-lvm] Best way to image devices in an LVM environment Jim Morgan
2006-08-27 6:16 ` Andy Smith
2006-08-27 11:51 ` Matthew Gillen
2006-08-28 19:48 ` Andy Smith
2006-08-28 19:51 ` Graham Wood
2006-08-28 20:04 ` Andy Smith
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=20060827044208.GL1011@strugglers.net \
--to=andy@strugglers.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.