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 1S4ziD-0007vc-Dh for garchives@archives.gentoo.org; Tue, 06 Mar 2012 19:06:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 382D3E0E15; Tue, 6 Mar 2012 19:06:03 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 5CF1AE0BF0 for ; Tue, 6 Mar 2012 19:05:08 +0000 (UTC) Received: from digimed.co.uk (unknown [192.168.1.177]) by mail.digimed.co.uk (Postfix) with ESMTPSA id 65BC98077C for ; Tue, 6 Mar 2012 19:05:07 +0000 (GMT) Date: Tue, 6 Mar 2012 19:05:01 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] LVM: Removing 3 disks and replacing with 1 Message-ID: <20120306190501.77bea653@digimed.co.uk> In-Reply-To: <4F564CF2.1030007@binarywings.net> References: <589B3E10-5607-4A30-8B0C-180CA870C3B4@stellar.eclipse.co.uk> <20120306172514.665179bd@digimed.co.uk> <4F564CF2.1030007@binarywings.net> Organization: Digital Media Production X-Mailer: Claws Mail 3.8.0cvs30 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/a7AlwlsHPPdGsG5tKaM9SCk"; protocol="application/pgp-signature" X-Archives-Salt: 3457bbd1-1d3a-4c8c-ae14-a8b6c49078aa X-Archives-Hash: fd83daaeef683be2bf3a3bb11398499e --Sig_/a7AlwlsHPPdGsG5tKaM9SCk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 06 Mar 2012 18:44:18 +0100, Florian Philipp wrote: > >> 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 >=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. But Stroller made no mention of LVM on the new disk, just format and mount. > > 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 > > writes while pvmove is running go to the new drive, so you can still > > use the system while moving (try doing that with cp :). > 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. It doesn't have to be a system disk, just something that is in use. Copying 3TB is going to take a while, making the drive unavailable to whatever needs to write for it for that amount of time may be be unacceptable and is certainly unnecessary. --=20 Neil Bothwick A consultant is a person who borrows your watch, tells you what time it is, pockets the watch, and sends you a bill for it. --Sig_/a7AlwlsHPPdGsG5tKaM9SCk Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk9WX+IACgkQum4al0N1GQOFlQCg2pj+oZL3uk4rYPkcViAMzhOy XUEAoJJM2maHV5GBF3i5bUHXdQ5iU661 =y9r+ -----END PGP SIGNATURE----- --Sig_/a7AlwlsHPPdGsG5tKaM9SCk--