public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jens Müller" <blog@tessarakt.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: LVM: extending volume groups and logical volumes
Date: Fri, 16 Dec 2011 04:05:35 +0100	[thread overview]
Message-ID: <jcechv$dm1$1@dough.gmane.org> (raw)
In-Reply-To: <yu9mxattg2f.fsf@nyu.edu>

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




  parent reply	other threads:[~2011-12-16  3:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16  2:18 [gentoo-user] LVM: extending volume groups and logical volumes Allan Gottlieb
2011-12-16  2:46 ` Dale
2011-12-16  3:05 ` Jens Müller [this message]
2011-12-16  3:50   ` [gentoo-user] " Jens Müller
2011-12-16  7:41 ` [gentoo-user] " J. Roeleveld
2011-12-16  7:51   ` Dale
2011-12-16 10:02   ` Neil Bothwick
2011-12-16 13:27     ` Pandu Poluan
2011-12-16  9:02 ` Philip Webb
2011-12-17  1:37 ` Allan Gottlieb
2011-12-17  1:56   ` Dale
2011-12-17  2:23     ` Allan Gottlieb
2011-12-17  3:35       ` Dale
2011-12-17  4:14         ` Allan Gottlieb
2011-12-17  4:59           ` Dale
2011-12-17  9:55             ` pk
2011-12-17 13:57               ` Allan Gottlieb
2011-12-17 15:18                 ` Dale
2011-12-17 16:47   ` Philip Webb
2011-12-17 17:07     ` Allan Gottlieb
2011-12-20 13:21   ` J. Roeleveld
2011-12-20 13:50     ` Allan Gottlieb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='jcechv$dm1$1@dough.gmane.org' \
    --to=blog@tessarakt.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox