From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S4yS5-0003u5-3h for garchives@archives.gentoo.org; Tue, 06 Mar 2012 17:45:33 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5781E0E1B; Tue, 6 Mar 2012 17:45:23 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by pigeon.gentoo.org (Postfix) with ESMTP id 2D2E6E0B60 for ; Tue, 6 Mar 2012 17:44:27 +0000 (UTC) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D7DB9200D6 for ; Tue, 6 Mar 2012 12:44:26 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 06 Mar 2012 12:44:26 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=EWKDUfUBZFKWtNjttbs6oGPd fnM=; b=SEW0kpt58LQ7d7MblKSPbLfYnmGMIfyg9+DKF3KDbvW2TZFuMkA6XTsg KDvB6iiv+SHAN4rV9k3CQ6wK95fsCj11FzNppcRjZBnNBghd7gi59+t9A7MLeH2G siWpsTYXIwCnHjX7CQAnoOCd5uqW32TM3G+IrYtBkbMzEfo3v14= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=EWKD UfUBZFKWtNjttbs6oGPdfnM=; b=qwh0vVONzX0LLJD5KDyFinDh3iO4uYv5Vby7 w7okppLGFLvTv6ajhxVkg4koFscjMc8yGF0nbL+LNOu1QsO2lwS7AHUfPz4Qh0if WqkBP29btDI225s1+2ysomW9SrFGDYenh1rZVaeYMvUhBfdd85gyWYgrWAMmrmPr 4ayzk1U= X-Sasl-enc: frKQ+D3gc9pfpqVNxkXEyv4MtNwrTnQQ5cZVzp2tLrXz 1331055866 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id C69348E0171 for ; Tue, 6 Mar 2012 12:44:25 -0500 (EST) Message-ID: <4F564CF2.1030007@binarywings.net> Date: Tue, 06 Mar 2012 18:44:18 +0100 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120303 Thunderbird/10.0.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LVM: Removing 3 disks and replacing with 1 References: <589B3E10-5607-4A30-8B0C-180CA870C3B4@stellar.eclipse.co.uk> <20120306172514.665179bd@digimed.co.uk> In-Reply-To: <20120306172514.665179bd@digimed.co.uk> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1411FC8D5AAEB1B5E40CC519" X-Archives-Salt: 133373fe-6a9d-4182-87d4-e07b604e363b X-Archives-Hash: b452f08dff8d16e9e254a632c0ae9066 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1411FC8D5AAEB1B5E40CC519 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Am 06.03.2012 18:25, schrieb Neil Bothwick: > On Tue, 6 Mar 2012 16:32:56 +0000, Stroller wrote: >=20 >>> =85 I initially want to replace the 3x1TBs with a single 3TB drive bu= t >>> i've never removed/replaced a drive in an LVM setup before. I think I= >>> understand how it is done, using pvmove =85 =20 >> >> Or you could just format and mount the new drive and use `cp`. >=20 > Thereby instantly removing the benefits of LVM and making it almost > impossible to extend the space by adding another drive when needed. >=20 I don't think so. vgextend the volume group with the new disk, lvcreate a new volume using only extents from the new disk, copy data over to it, swap mount points, done. Plus points: Removes fragmentation of the old file system. Also probably faster. > To the OP, pvmove is perfectly safe as it does a copy;verify;delete on > one small block of extents at a time. It also ensures that any new writ= es > while pvmove is running go to the new drive, so you can still use the > system while moving (try doing that with cp :). >=20 >=20 Wait, are we talking about a system disk (root and stuff)? I was under the impression that it's just a data dump. Of course, with system partitions and other media that cannot be handled read-only for a longer time, pvmove or lvchange are the better options. Regards, Florian Philipp --------------enig1411FC8D5AAEB1B5E40CC519 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9WTPcACgkQqs4uOUlOuU/tTgCaAk3DG1J333KLHRgvlqS7aSqc R78AmwfeeAAOfI4ly4nNewM1tbeyXTIa =lWHc -----END PGP SIGNATURE----- --------------enig1411FC8D5AAEB1B5E40CC519--