[CentOS] not using LVM for Linux VM guests?

Barry Brimer lists at brimer.org
Fri Nov 18 04:42:46 UTC 2011


> I've tried that, it returns a warning about kernel unable to reread partition table and requiring a reboot to see any modifications.
> Then the next call to pvcreate fails as it can't find the partition.
>
> --Russell
>
>> -----Original Message-----
>> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On
>> Behalf Of Barry Brimer
>> Sent: Friday, 18 November 2011 11:13 a.m.
>> To: CentOS mailing list
>> Subject: Re: [CentOS] not using LVM for Linux VM guests?
>>
>> Quoting "Smithies, Russell" <Russell.Smithies at agresearch.co.nz>:
>>
>>> Perhaps I'm doing it wrong then.
>>>
>>> 1). In Vmware, extend the existing disk by changing the provisioned
>>> size in the vSphere client.
>>> 2). In Centos, create an additional partition with fdisk, 3). Somehow
>>> reread the partition table without rebooting??
>>> 4). pvcreate
>>> 5). vgextend
>>> 6). lvextend
>>> 7). resize2fs
>>>
>>> What I find is that without a reboot, the OS doesn't see the partition
>>> so can't pvcreate etc.
>>>
>>> --Russell

I don't believe partprobe works when you change the partitiontable of the 
disk that the root filesystem is on.  I could be remembering it wrong.

Barry



More information about the CentOS mailing list