[PVE-User] BTRFS...

Adam Thompson athompso at athompso.net
Wed Feb 3 18:01:27 CET 2016

Oops, yes, I've even used it that way.

LVM is helpful here, because you can migrate a running LV to a new disk in the VG, then delete the original disk, then grow the LV - all without downtime.

On February 3, 2016 1:07:29 AM CST, Wolfgang Bumiller <w.bumiller at proxmox.com> wrote:
>> On February 2, 2016 at 8:07 PM Adam Thompson <athompso at athompso.net>
>> On 16-02-02 11:24 AM, Gilberto Nunes wrote:
>> > Hi
>> >
>> > And what if I work with BTRFS inside the VM???
>> > The FS where VM image lay could be any other FS... Currently, I am
>> > GlusterFS + XFS.
>> > I need LVM or BRTFS inside the VM, in order to resize disk
>> > And I am between LVM or BRTFS....
>> Only if you need to do *online* resizes (without unmounting the 
>> filesystem).  If you can live with unmounting the filesystem, plain
>> ext3 (and ext4) can do what you need.  Of course, if it's the root 
>> filesystem you need to resize, the only way to unmount it is to shut 
>> down the VM and reboot it in single-user mode.  I think you might
>> to boot off a CD to resize the root fs, can't remember if there's a
>> around it.
>Actually resize2fs works on mounted file systems as long as you're only
>growing it and not shrinking it, including the root filesystem.
>> On February 2, 2016 at 4:38 PM Gilberto Nunes
><gilberto.nunes32 at gmail.com> wrote:
>> That's other doubt... I will lose data if I do it with parted
>No, but naturally you should make a backup just in case, especially
>you do this the first time.
>Of course there are some limitations when you need online resizing
>downtime. Then you can only grow a partition without moving it. In
>words you can only resize a partition if there's physical free space
>after it. (Most of the time this is the case since you usually have the
>boot partition first and then the root and maybe a home or data
>and most of the time that last one is the one you want to resize ;-) )
>Eg. with [boot, root, home] after resizing the physical disk you end up
>[boot, root, home, <frees space>], so you can only resize the home
>If you can afford down time you can also use parted to move partitions
>so that
>you can resize any of them.  This however takes a lot longer and is a
>more risky, so in this case you should _always_ make a backup even if
>you know
>what you're doing.

Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20160203/28b70861/attachment.htm>

More information about the pve-user mailing list