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 1RTQcT-0000i1-72 for garchives@archives.gentoo.org; Thu, 24 Nov 2011 04:09:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB12F21C03C; Thu, 24 Nov 2011 04:08:50 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id 0ADFC21C01F for ; Thu, 24 Nov 2011 04:08:03 +0000 (UTC) Received: from [192.168.2.43] (xdsl-78-35-186-17.netcologne.de [78.35.186.17]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 3FDC8DC04D for ; Thu, 24 Nov 2011 05:08:03 +0100 (CET) Message-ID: <4ECDC266.1040101@wonkology.org> Date: Thu, 24 Nov 2011 05:04:54 +0100 From: Alex Schuster User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 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 and LABELS in fstab References: <4EC47700.2060707@gmail.com> <4ECC8990.7080106@gmail.com> <20111123133116.5cf32784@hactar.digimed.co.uk> <4ECD448B.3050603@gmail.com> <20111123211729.62c264cd@digimed.co.uk> <4ECD9D9A.4030908@gmail.com> <4ECDB9F8.30006@gmail.com> In-Reply-To: <4ECDB9F8.30006@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 98f8cec5-6d26-4abb-9780-02e966245f17 X-Archives-Hash: b5ef1c16d484291955f5fb65e029e5d9 Dale asks: > OK. Everyone duck, I been thinking on this and Neils info above. lol > This is what I sort of figured out and tell me where I am off here. I > have to reduce the file system, change the partition in cfdisk (?), > resize the lv, then reduce the vg, then I can run pvmove? After all > that, I can remove the drive sdb? Do I have the order correct too? If > it does involve all this, I'm not sure I want to do this. The file > system and cfdisk part makes me nervous. Maybe some of this isn't > needed and I am reading some of the info incorrectly, I hope. No need for cfdisk. Just shrink the file system, and then the logical volume. You can keep the VG as it is, as you move stuff around inside the same VG. BTW, I also tend to make lots of partitions on a drive, all belonging to the same VG, so I can more easily change things later. Like freeing a partition in case some other OS needs space for itself or something like that. I tend to shrink the file system to a size somewhat smaller than the logical volume, just in case there is some additional header or something, or different utilities use different units (megabytes vs. mibibytes). Calling resize2fs afterwards enlarges the FS to the maximum size. I wrote a script to automate this, it also takes care of a LUKS volume on the LVM. And is easier to use than doing all those steps in a row. And I trust it more than me making a typo in one of those commands. But I don't think I would use such a thing written by some guy, and prefer to just do it myself. Wonko