On Feb 22, 2017 7:45 AM, "Bernard Fay" wrote:
Hello,
I have a CentOS VM with only one disk on a Xenserver.
The disk has 2 partitions:
/dev/xvda1 -> /boot
/dev/xvda2 -> a physical volume for LVM
I added 5GB to this disk via Xencenter to extend /dev/xvda2. Usually I
just have to do "pvresize
...@centos.org] Im Auftrag von Bernard
>> > Fay
>> > Gesendet: Mittwoch, 22. Februar 2017 14:18
>> > An: CentOS mailing list
>> > Betreff: Re: [CentOS] how to resize a partition of a disk define as a
>> > physical volume
>> >
>> > I sho
On Wed, 22 Feb 2017, Gianluca Cecchi wrote:
On Wed, Feb 22, 2017 at 2:42 PM, Bernard Fay wrote:
How do you resize the partition without loosing data?
gparted does not support LVM.
If you don't trust yourself to do it right, just create a new partition on the
disk, pvcreate it, add it to th
I usually use the whole disk a PV but this disk has the /boot partition
which cannot be LVM.
I decided to simply use the third partition as another PV and extended the
VG.
Thanks,
On Wed, Feb 22, 2017 at 8:52 AM, Gianluca Cecchi
wrote:
> On Wed, Feb 22, 2017 at 2:42 PM, Bernard Fay
> wrote:
On Wed, Feb 22, 2017 at 2:42 PM, Bernard Fay wrote:
> How do you resize the partition without loosing data?
>
> gparted does not support LVM.
>
>
It is preferrable to create PV on the whole disk also to manage these kind
of situations.
In case I have to manage with partitions, the must is that yo
hricht-
> > Von: CentOS [mailto:centos-boun...@centos.org] Im Auftrag von Bernard
> > Fay
> > Gesendet: Mittwoch, 22. Februar 2017 14:18
> > An: CentOS mailing list
> > Betreff: Re: [CentOS] how to resize a partition of a disk define as a
> > physical volume
>
: Re: [CentOS] how to resize a partition of a disk define as a
> physical volume
>
> I should have added the output of pvs:
>
> [root ~]# pvs
> PV VG Fmt Attr PSize PFree
> /dev/xvda2 cl_vm731611 lvm2 a-- 9.00g0
>
> PFree still show 0. It sho
I should have added the output of pvs:
[root ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/xvda2 cl_vm731611 lvm2 a-- 9.00g0
PFree still show 0. It should show 5g.
Also:
[root ~]# pvdisplay /dev/xvda2
--- Physical volume ---
PV Name /dev/xvda2
VG Name
On Wed, Feb 22, 2017 at 07:44:33AM -0500, Bernard Fay wrote:
> Hello,
>
> I have a CentOS VM with only one disk on a Xenserver.
>
> The disk has 2 partitions:
>
> /dev/xvda1 -> /boot
> /dev/xvda2 -> a physical volume for LVM
>
>
> I added 5GB to this disk via Xencenter to extend /dev/xvda2. U
9 matches
Mail list logo