Re: [CentOS] expand physical volume
I hope you meant, created a new partition and a new pv and then added that to the vg. /Peter Of course yes :-) Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
On Tuesday 09 October 2007, Thomas Antony wrote: > Hi, > > I created the second partition, added it to the pv and everything is > working fine. I hope you meant, created a new partition and a new pv and then added that to the vg. /Peter signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
Both fdisk and parted _can_ do it. But just as you've mentioned, parted has a nasty habbit of involving itself in the content of the partition... For lvm it really won't matter at all if your vg/lv is made up out of two partitions with pvs or just one. /Peter Hi, I created the second partition, added it to the pv and everything is working fine. Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
On Monday 08 October 2007, Thomas Antony wrote: > Hi Peter, > > Thank you for all your suggestions! > I will probably will add sdb2, but i would like to know if it is > possible to resize a partitition without the filesystem an if yes how do > i do that? Both fdisk and parted _can_ do it. But just as you've mentioned, parted has a nasty habbit of involving itself in the content of the partition... For lvm it really won't matter at all if your vg/lv is made up out of two partitions with pvs or just one. /Peter > Thomas signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
Note that I suggested that you _dont_ resize partitions but create a new one (new partition with a new pv on it etc.). pvresize resizes the pv _if_ the containing block device or partition has already been grown. parted seems to want to resize the file system also and i think this would make some troubles. I thought pvresize would do this in one step? Hi Peter, Thank you for all your suggestions! I will probably will add sdb2, but i would like to know if it is possible to resize a partitition without the filesystem an if yes how do i do that? Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
On Sunday 07 October 2007, Thomas Antony wrote: > > The one and only partition on your device (sdb1) has the old size. That > > is, there's free space on sdb. You have to either 1) create a partition > > sdb2 (and then a pv on it etc.) or 2) resize the partition sdb1 (then > > resize the pv etc.). > > > > I'd pick #1. remember to reread the partition table after creating the > > partition (partprobe /dev/sdb or similar) before doing pvcreate on sdb2. > > > > The all you have left is to add the pv to your vg, resize the lv (or > > create a new lv, whichever...). And finally resize the filesystem in the > > lv. > > Hi Peter, > > How do i resize this partition? Note that I suggested that you _dont_ resize partitions but create a new one (new partition with a new pv on it etc.). pvresize resizes the pv _if_ the containing block device or partition has already been grown. > parted seems to want to resize the file system also and i think this > would make some troubles. > I thought pvresize would do this in one step? signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
The one and only partition on your device (sdb1) has the old size. That is, there's free space on sdb. You have to either 1) create a partition sdb2 (and then a pv on it etc.) or 2) resize the partition sdb1 (then resize the pv etc.). I'd pick #1. remember to reread the partition table after creating the partition (partprobe /dev/sdb or similar) before doing pvcreate on sdb2. The all you have left is to add the pv to your vg, resize the lv (or create a new lv, whichever...). And finally resize the filesystem in the lv. Hi Peter, How do i resize this partition? parted seems to want to resize the file system also and i think this would make some troubles. I thought pvresize would do this in one step? Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] expand physical volume
On Saturday 06 October 2007, Thomas Antony wrote: > Hi. > > I added a disk to a hardware raid 5 array and now i want to expand the > LVM physical volume. There are now 4 sas 146GB disks in the server. > The virtual disk /dev/sdb from the raid controller has been resized > successfully with the server management software osma. > > [EMAIL PROTECTED] ~]# fdisk -l /dev/sdb > > Disk /dev/sdb: 438.4 GB, 438489317376 bytes > 255 heads, 63 sectors/track, 53309 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sdb1 * 1 35539 285466986 8e Linux LVM > > > > When i run "pvresize /dev/sdb1" the output tells me it has been resized, > but actually the physical volume didn't expand to the partition size 438GB. The one and only partition on your device (sdb1) has the old size. That is, there's free space on sdb. You have to either 1) create a partition sdb2 (and then a pv on it etc.) or 2) resize the partition sdb1 (then resize the pv etc.). I'd pick #1. remember to reread the partition table after creating the partition (partprobe /dev/sdb or similar) before doing pvcreate on sdb2. The all you have left is to add the pv to your vg, resize the lv (or create a new lv, whichever...). And finally resize the filesystem in the lv. Good luck, Peter signature.asc Description: This is a digitally signed message part. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] expand physical volume
Hi. I added a disk to a hardware raid 5 array and now i want to expand the LVM physical volume. There are now 4 sas 146GB disks in the server. The virtual disk /dev/sdb from the raid controller has been resized successfully with the server management software osma. [EMAIL PROTECTED] ~]# fdisk -l /dev/sdb Disk /dev/sdb: 438.4 GB, 438489317376 bytes 255 heads, 63 sectors/track, 53309 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 35539 285466986 8e Linux LVM When i run "pvresize /dev/sdb1" the output tells me it has been resized, but actually the physical volume didn't expand to the partition size 438GB. [EMAIL PROTECTED] ~]# pvresize /dev/sdb1 Physical volume "/dev/sdb1" changed 1 physical volume(s) resized / 0 physical volume(s) not resized [EMAIL PROTECTED] ~]# pvdisplay /dev/sdb1 --- Physical volume --- PV Name /dev/sdb1 VG Name VolGroup01 PV Size 272.24 GB / not usable 24.17 MB Allocatable yes (but full) PE Size (KByte) 32768 Total PE 8711 Free PE 0 Allocated PE 8711 PV UUID TCE2wI-U5kt-e8hd-d4gU-ug7Y-aEp9-k5QwG6 How can i resize the physical volume sdb1 to the partition size 438GB? Thank you in advance, Thomas ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos