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 1RbO8j-0007zp-EW for garchives@archives.gentoo.org; Fri, 16 Dec 2011 03:07:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BFB3821C0A8; Fri, 16 Dec 2011 03:07:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AB3F121C04C for ; Fri, 16 Dec 2011 03:06:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 183661B408C for ; Fri, 16 Dec 2011 03:06:01 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -2.808 X-Spam-Level: X-Spam-Status: No, score=-2.808 tagged_above=-999 required=5.5 tests=[AWL=1.576, BAYES_00=-1.9, RP_MATCHES_RCVD=-2.482, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jz4Du2Qr0i-W for ; Fri, 16 Dec 2011 03:05:53 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id 272DC1B4087 for ; Fri, 16 Dec 2011 03:05:52 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RbO7J-0006WP-3w for gentoo-user@gentoo.org; Fri, 16 Dec 2011 04:05:49 +0100 Received: from e180069033.adsl.alicedsl.de ([85.180.69.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Dec 2011 04:05:49 +0100 Received: from blog by e180069033.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Dec 2011 04:05:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: =?ISO-8859-1?Q?Jens_M=FCller?= Subject: [gentoo-user] Re: LVM: extending volume groups and logical volumes Date: Fri, 16 Dec 2011 04:05:35 +0100 Message-ID: References: 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: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: e180069033.adsl.alicedsl.de User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-Archives-Salt: 72ccd92a-e4ce-48d0-a7c5-8ca1b4fc4d60 X-Archives-Hash: 1a3925337f55f5f7798b41cabffe74e3 Am 16.12.2011 03:18, schrieb Allan Gottlieb: > Questions > > 1. Apparently 2.6 (hence 3.x) kernels can expand mounted file systems > (/var is mounted as ext3). > > Since I can't unmount /var because it is in use, I guess that, if I > every need to shrink /var, I would need to boot off a CD. Is that > correct? > > Back in the day, we had single user mode for this, but I don't see > how to get the equivalent now. > > Is it really safe to extend /var (i.e., /dev/vg/var) while mounted > as ext3? It sounds frightening since daemons could start running > and access /var. Well, online resizing works online, hence the name. It is of course supposed to be working. You should have a backup nethertheless. resize2fs also supports shrinking ext3 partitions, see http://linux.die.net/man/8/resize2fs Regards, Jens