[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dd/lvm question
- To: silug-discuss@silug.org
- Subject: dd/lvm question
- From: "Koree A. Smith" <koree@ameth.org>
- Date: Wed, 2 Apr 2008 16:07:29 -0500
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; bh=knWU5BW5Q1/iXWXtz0Rf+iGw0V0TEb40g52DrGg5XA4=; b=DeFRGR2W4adharrkIQQuxNN17ppthISMvTpV4qKlKd5twu9g5j46N4+xE8Crbp28OG+qApHxFzLKfZjKDowaDV+YTpEJieQTKyU11Y49P/KCPwlJLwUkYnBG9kZVlmVwFWZ5ex5phOi3Eoiumf9t2mzpnm2yqczbcjomnJo/jl0=
- DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=pLhhuVtX+UyrdhTuhKO66gnUCU6pHFQj6XcgJcWYYRZidM1rkq25cMASaz/VkybP2bjavzUp4Cr90bmcHE52xxlyepMHKrxWaO0Ru1nlc/VtyFK3obYTdIuCxcUycVDWK5vNDrlYB+AKMTbMpSUTS2n2rKHyQ/TPe7xzN0ty2nk=
- Organization: Southern Illinois Linux Users Group
- Reply-To: silug-discuss@silug.org
- Sender: silug-discuss-owner@silug.org
I asked a related question here a while back, but I never truly solved this issue, and came at it from a different angle. Here's what I want to do:
1. I have a linux server with two drives, one is sda, the other sdb. The drives are *identical*
2. I want to dd sda to sdb
3. I want to be able to boot either sda or sdb
4. I want to be able to script a regular (daily, weekly, monthly) dd to keep the second image fresh
I have played around with this, and here are the challenges
1. the dd works fine. However, it creates duplicate UUIDs (duh), so when the system boots, it gives a message like " Found duplicate PV PnvnzL7YFft76Ky0EaPbOh519SQD5Uxc: using /dev/sdb2 not
/dev/sda2
"
2. I found some workarounds using the lvm.conf file's filters, but those aren't really going to work for what I want to do, as I'm not allowed to re-roll the initrd to do this.
3. pvchange -u should work fine, but I am having a challenge there. To make it work, one has to umount anything on it (easy), and disable the VGs on it (easy too). I then try to do the "pvchange -u /dev/sdb2" command, and it says that isn't a valid PV. The only thing that has to happen is for the UUIDs to change (hard) and the ext3 labels to change (easy).
Anyone got a clue how to get past this?
Koree
--
Koree A. Smith, RHCE
--
koreesmith@gmail.com
koree@ameth.org