From: Julien Cigar <jcigar@ulb.ac.be>
To: linux-lvm@redhat.com
Subject: [linux-lvm] partition resizing
Date: Fri, 26 Jan 2007 10:24:15 +0100 [thread overview]
Message-ID: <45B9C8BF.3080101@ulb.ac.be> (raw)
Hello,
I have to resize two partitions of one of our servers. As I've always
used LVM for personal usage until now, I want to be sure that I will not
make any mistakes.
We have an hardware RAID 5 array with LVM2 on top. The OS is Linux of
course (Debian) with a 2.6.15 kernel.
Here is the current situation :
/dev/mapper/vg0-home on /home type ext3 (rw)
/dev/mapper/vg0-srv on /srv type ext3 (rw)
/dev/mapper/vg0-tmp on /tmp type ext3 (rw,nosuid,nodev)
/dev/mapper/vg0-var on /var type ext3 (rw)
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
Another question I wondered is : what's the difference between
lvreduce/lvextend and lvresize ?
In advance thanks,
Julien
--
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Universit� Libre de Bruxelles
Campus de la Plaine CP 257
B�timent NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entr�e ULB 2
B-1050 Bruxelles
office: jcigar@ulb.ac.be
next reply other threads:[~2007-01-26 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-26 9:24 Julien Cigar [this message]
2007-01-28 10:05 ` [linux-lvm] partition resizing Luca Berra
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=45B9C8BF.3080101@ulb.ac.be \
--to=jcigar@ulb.ac.be \
--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