Linux LVM users
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] partition resizing
Date: Sun, 28 Jan 2007 11:05:22 +0100	[thread overview]
Message-ID: <20070128100522.GB21574@percy.comedia.it> (raw)
In-Reply-To: <45B9C8BF.3080101@ulb.ac.be>

On Fri, Jan 26, 2007 at 10:24:15AM +0100, Julien Cigar wrote:
>What I want to do is to reduce /home from 50G and extend /srv of 50G.
>Are the following operations safe for this ? :
>
>#> umount /srv
>#> umount /home
>#> resize2fs /dev/mapper/vg0-home 50G
>#> lvreduce -L-50G /dev/mapper/vg0-home
>#> lvextend -L+50G /dev/mapper/vg0-srv
>#> resize2fs /dev/mapper/vg0-srv
>#> mount /home
>#> mount /srv

assuming that /dev/mapper/vg0-home is 100G yes, else the option to
resize2fs should be the size of /dev/mapper/vg0-home minus 50G.
and you would probably have to fsck vg0-home and vg0-srv after
unmounting.

>Another question I wondered is : what's the difference between 
>lvreduce/lvextend and lvresize ?

i think these are 2 interfaces to the same funcrionality.
L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

      reply	other threads:[~2007-01-28 10:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-26  9:24 [linux-lvm] partition resizing Julien Cigar
2007-01-28 10:05 ` Luca Berra [this message]

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=20070128100522.GB21574@percy.comedia.it \
    --to=bluca@comedia.it \
    --cc=linux-lvm@redhat.com \
    /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