Re: [lvm] Howto resize LVM on GPT partition.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



First you'll need to resize the partition, and after you'll need to
resize the filesystem you're currently using. LVM is made to be
resized; I wouldn't worry about that part. The part you have to watch
out for is resizing the filesystem. What FS are you using? If its ext2
you're going to run into some issues. Ext3 can be done live, as can
ext4 and XFS.

On Tue, May 10, 2011 at 6:40 PM, Geofrey Rainey
<Geofrey.Rainey@xxxxxxxxxx> wrote:
> I've done 1. before and it works okay. Like you say, it's just a little
> scary modifying the partition table, but it works. I'd back up your data
> first though.
>
> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Soeren Grunewald
> Sent: Wednesday, 11 May 2011 2:43 a.m.
> To: General Red Hat Linux discussion list
> Subject: [lvm] Howto resize LVM on GPT partition.
>
> Hi All,
>
> We had a RHEL5.6 server which was installed with default settings on a
> HW raid system. The raid was originally setup as raid1 with 2x2TB. Soon
> we run out of storage, so we migrate to raid5. Now we have ~4TB, but
> can't access the storage, because MBR supports only partitions up to
> 2TB.
>
> So I've converted the MBR to GPT and fixed grub to boot again. That was
> quite easy (following http://www.rodsbooks.com/gdisk/mbr2gpt.html).
>
> But now i need to resize the physical LVM partition. And this is
> something which makes me nervous.
>
> Normally i would use fdisk to delete part2 and recreate it. Using parted
>
> and resize command does not work because it is a LVM partition. and
> mkpart does not know LVM as partition type too.
>
> Finally i can use pvresize, but i have no idea if pvresize is working
> correctly with GPT partitions and/or partitions size > 2TB.
>
> In the end i have 2 options.
> Â1) try pvresize and pray
> Â Â - the way it should be, but scary
> Â2) create a new LVM partition and add it to the volume group.
> Â Â - uncool
>
> So has anyone here done something before or any other ideas/comments?
>
> Below some print outs which might be helpful.
>
> parted:
>
> Model: AMCC 9690SA-4I DISK (scsi)
> Disk /dev/sda: 4000GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
>
> Number ÂStart  End   Size  ÂFile system ÂName        ÂFlags
> Â1 Â Â Â32.3kB Â107MB Â 107MB Â ext3 Â Â Â Â Linux/Windows data
> Â2 Â Â Â107MB Â 2000GB Â2000GB Â Â Â Â Â Â Â Linux LVM Â Â Â Â Â lvm
>
> pvdisplay
> Â --- Physical volume ---
>  PV Name        /dev/sda2
>  VG Name        VolGroup00
>  PV Size        1.82 TB / not usable 225.00 KB
>  Allocatable      yes
> Â PE Size (KByte) Â Â Â 32768
> Â Total PE Â Â Â Â Â Â Â59601
> Â Free PE Â Â Â Â Â Â Â 1
> Â Allocated PE Â Â Â Â Â59600
> Â PV UUID Â Â Â Â Â Â Â C0dkqJ-QObR-qx8I-EQZh-LV65-w2Df-nFJhw
>
> lvdisplay
> Â --- Logical volume ---
>  LV Name        Â/dev/VolGroup00/LogVol00
>  VG Name        ÂVolGroup00
> Â LV UUID Â Â Â Â Â Â Â ÂlBPFKP-OYX9-rPVU-f2RN-iO4q-Z9LP-RyFbUs
>  LV Write Access    Âread/write
>  LV Status       Âavailable
>  # open         1
>  LV Size        Â1.81 TB
> Â Current LE Â Â Â Â Â Â 59351
>  Segments        1
>  Allocation       inherit
>  Read ahead sectors   auto
>  - currently set to   256
>  Block device      253:0
>
> Â --- Logical volume ---
>  LV Name        Â/dev/VolGroup00/LogVol01
>  VG Name        ÂVolGroup00
> Â LV UUID Â Â Â Â Â Â Â Â1uJ9kD-l9WD-gEjQ-grAz-uppa-Un3d-HijG6w
>  LV Write Access    Âread/write
>  LV Status       Âavailable
>  # open         1
>  LV Size        Â7.78 GB
> Â Current LE Â Â Â Â Â Â 249
>  Segments        1
>  Allocation       inherit
>  Read ahead sectors   auto
>  - currently set to   256
>  Block device      253:1
>
>
> --
> Kind regards,
> Soeren
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> ==========================================================
> For more information on the Television New Zealand Group, visit us
> online at tvnz.co.nz
> ==========================================================
> CAUTION: ÂThis e-mail and any attachment(s) contain information that
> is intended to be read only by the named recipient(s). ÂThis information
> is not to be used or stored by any other person and/or organisation.
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux