Re: not using LVM for Linux VM guests?

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



Nope, doesn't work for me still.
It's the root partition I'm trying to resize so if I delete then recreate to larger size, partprobe still fails then if I reboot it won't start as it can't find the root partition.
As Barry suggested, I don't think you can reread the root partition.

--Russell

> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
> Behalf Of James A. Peltier
> Sent: Friday, 18 November 2011 6:29 p.m.
> To: CentOS mailing list
> Subject: Re:  not using LVM for Linux VM guests?
> 
> ----- Original Message -----
> | > 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@xxxxxxxxxx [mailto:centos-
> bounces@xxxxxxxxxx]
> | >> On
> | >> Behalf Of Barry Brimer
> | >> Sent: Friday, 18 November 2011 11:13 a.m.
> | >> To: CentOS mailing list
> | >> Subject: Re:  not using LVM for Linux VM guests?
> | >>
> | >> Quoting "Smithies, Russell" <Russell.Smithies@xxxxxxxxxxxxxxxx>:
> | >>
> | >>> 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
> 
> It does but it (the new size) is not recognized until you delete the partition,
> recreate it with the new size, then run partprobe again, then resize the file
> system.  It's worked for me in the past.
> 
> --
> James A. Peltier
> IT Services - Research Computing Group
> Simon Fraser University - Burnaby Campus
> Phone   : 778-782-6573
> Fax     : 778-782-3045
> E-Mail  : jpeltier@xxxxxx
> Website : http://www.sfu.ca/itservices
>           http://blogs.sfu.ca/people/jpeltier
> I will do the best I can with the talent I have
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux