From: PeS <pes@sandbox.cz>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to resize a PV located on a SAN LUN
Date: Mon, 23 Apr 2007 12:06:38 +0200 [thread overview]
Message-ID: <462C852E.8010300@sandbox.cz> (raw)
In-Reply-To: <1177089048.10232.6.camel@zhadum.wg.at>
Thomas Hager wrote:
> On Fri, 2007-04-20 at 13:47 +0200, Micha Holzmann wrote:
>> Hello,
> hi,
>
>> Now i had to increase the size of partition of sda12 which is a LVM.
> why would you want to do that? if your vg is running out of free
> extents, why not just add a new LUN from the SAN and extend the vg with
> it?
Maybe, because their SAN configuration get bloated with smaller LUNs?
When SAN enables extending size, why not use it?
>> I am not sure which is the right way. Within the storage managment
>> software i can increase the size of the LUN. After rebooting the machine
>> the additional space is appended at the end of partitions and it is
>> marked as free. How can i now increase the LVM partition. Which
>> tool/programm i do need for this task?
> you can't really increase the physical volume, because there's a swap
> partition between your physical volume and the free space.
> use fdisk to partition the free space as /dev/sda14, create a physical
> volume on the new partition (pvcreate /dev/sda14) and extend the
> volume group with the new physical volume (vgextend yourvg /dev/sda14).
As it's swap partition, he can recreate it. So create new swap partition
/dev/sda14 at the end of extended disk. Then mkswap /dev/sda14, swapon
/dev/sda14, swapoff /dev/sda13. Delete /dev/sda13, add size to
/dev/sda12 using fdisk. Then use pvresize /dev/sda12 (it'll autodetect
new size). And after this, you can see free PE in vg.
Or better, if you can disable swap partition for some time, switch it
off, delete sda13, resize sda12, pvresize sda12 and create new LV for
swap inside VG. With this, next time you add some space, you won't
move/delete swap partition, just resize(fdisk) and pvresize sda12.
> hth,
> tom.
Hope this helps,
PeS
next prev parent reply other threads:[~2007-04-23 10:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-20 11:47 [linux-lvm] How to resize a PV located on a SAN LUN Micha Holzmann
2007-04-20 17:10 ` Thomas Hager
2007-04-23 10:06 ` PeS [this message]
2007-04-20 17:11 ` Michael T. Babcock
2007-04-28 23:35 ` Louis Guillaume
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=462C852E.8010300@sandbox.cz \
--to=pes@sandbox.cz \
--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;
as well as URLs for NNTP newsgroup(s).