From: Louis Guillaume <lguillaume@berklee.edu>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] How to resize a PV located on a SAN LUN
Date: Sat, 28 Apr 2007 19:35:31 -0400 [thread overview]
Message-ID: <4633DA43.60003@berklee.edu> (raw)
In-Reply-To: <20070420114742.GA6661@mail.mhnet.de>
Micha Holzmann wrote:
> Hello,
>
> since a few weeks we have an IBM SAN environment with Blade-Center.
> The SAN controller is a DS4700 formerly known as FASTt. We have a LUN
> with 200 GB of size. The LUN ist partioned:
>
>
> fdisk -l /dev/sda
>
> Disk /dev/sda: 214.7 GB, 214748364800 bytes
> 255 heads, 63 sectors/track, 26108 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 125 1004031 83 Linux
> /dev/sda2 126 26108 208708447+ 5 Extended
> /dev/sda5 126 188 506016 83 Linux
> /dev/sda6 189 1185 8008371 83 Linux
> /dev/sda7 1186 1435 2008093+ 83 Linux
> /dev/sda8 1436 1560 1004031 83 Linux
> /dev/sda9 1561 1810 2008093+ 83 Linux
> /dev/sda10 1811 2060 2008093+ 83 Linux
> /dev/sda11 2061 4053 16008741 83 Linux
> /dev/sda12 4054 24960 167935446 8e Linux LVM
> /dev/sda13 24961 26108 9221278+ 82 Linux swap
>
>
>
> Now i had to increase the size of partition of sda12 which is a LVM.
> 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?
>
> Best regards,
> Micha
>
Others have suggested what is probably your only option if you're stuck
with this configuration, i.e. create a new PV and add it to the volume
group.
This configuration seems a little strange to me. How come you
partitioned the LUN this way? Using LVM for everything would have been
much more flexible in general.
If you had created a single PV from the whole LUN and created Logical
Volumes for each "partition", you would not have any problem now: You
would be able to simply do a "pvresize" then "lvextend" to grow the LV,
then resize2fs (assuming ext[23]).
Louis
prev parent reply other threads:[~2007-04-28 23:35 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
2007-04-20 17:11 ` Michael T. Babcock
2007-04-28 23:35 ` Louis Guillaume [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=4633DA43.60003@berklee.edu \
--to=lguillaume@berklee.edu \
--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).