Re: LVM setup with snapshots

2018-05-12 Thread Eduardo M KALINOWSKI
On 11-05-2018 21:46, Forest Dean Feighner wrote:
> I really didn't prepare for lvm. I never used lvm before this so had
> no idea of lvm before.
>
> Snapshots sound like an awesome idea.
>
> I would like to do a configured base install, create a snapshot, and
> modify (fork), the base for different things.
>
> With 20/20 hindsight. The default doesn't seem to have room. What are
> different solutions other debian/lvm users have used?

You can shrink most kinds of partitions (including ext4), and then
shrink the logical volumes (in this order). It's not as convenient as
growing the LVs since the partitions must not be mounted and shrinking
can be somewhat slow if data needs to be shuffled around, but it's possible.

As always, there's a small risk of data loss, so better have a backup of
important data.

-- 

She is descended from a long line that her mother listened to.
-- Gypsy Rose Lee

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: LVM setup with snapshots

2018-05-11 Thread Forest Dean Feighner
I really didn't prepare for lvm. I never used lvm before this so had no
idea of lvm before.

Snapshots sound like an awesome idea.

I would like to do a configured base install, create a snapshot, and modify
(fork), the base for different things.

With 20/20 hindsight. The default doesn't seem to have room. What are
different solutions other debian/lvm users have used?

Thanks
Forest





On Fri, May 11, 2018 at 2:57 PM, Forest Dean Feighner <
forest.feigh...@gmail.com> wrote:

>
>
> On Fri, May 11, 2018 at 8:15 AM, Greg Wooledge 
> wrote:
>
>> On Fri, May 11, 2018 at 09:20:32AM +0200, Pascal Hambourg wrote:
>> > > To me, it seems me the partition is too large to to reduce for
>> snapshots.
>> >
>> > What do you mean ?
>> > Did you allocate all the available space in the volume group to the
>> logical
>> > volumes ? Creating snapshots requires space.
>>
>> Yeah, if you let the installer do LVM partitioning "for" you, it
>> notoriously uses up all the extents, leaving you nothing to work with,
>> totally defeating the purpose of LVM.
>>
>> If you do an LVM install with Debian, you have to do manual partitioning.
>> Or at least, you really *really* want to.
>>
>>
>
> Yes, this was my first lvm install using the defaults which did not leave
> enough room for snapshots.
>
>
>
>
>


Re: LVM setup with snapshots

2018-05-11 Thread Forest Dean Feighner
On Fri, May 11, 2018 at 8:15 AM, Greg Wooledge  wrote:

> On Fri, May 11, 2018 at 09:20:32AM +0200, Pascal Hambourg wrote:
> > > To me, it seems me the partition is too large to to reduce for
> snapshots.
> >
> > What do you mean ?
> > Did you allocate all the available space in the volume group to the
> logical
> > volumes ? Creating snapshots requires space.
>
> Yeah, if you let the installer do LVM partitioning "for" you, it
> notoriously uses up all the extents, leaving you nothing to work with,
> totally defeating the purpose of LVM.
>
> If you do an LVM install with Debian, you have to do manual partitioning.
> Or at least, you really *really* want to.
>
>

Yes, this was my first lvm install using the defaults which did not leave
enough room for snapshots.


Re: LVM setup with snapshots

2018-05-11 Thread Greg Wooledge
On Fri, May 11, 2018 at 09:20:32AM +0200, Pascal Hambourg wrote:
> > To me, it seems me the partition is too large to to reduce for snapshots.
> 
> What do you mean ?
> Did you allocate all the available space in the volume group to the logical
> volumes ? Creating snapshots requires space.

Yeah, if you let the installer do LVM partitioning "for" you, it
notoriously uses up all the extents, leaving you nothing to work with,
totally defeating the purpose of LVM.

If you do an LVM install with Debian, you have to do manual partitioning.
Or at least, you really *really* want to.



Re: LVM setup with snapshots

2018-05-11 Thread Pascal Hambourg

Le 11/05/2018 à 01:21, Forest Dean Feighner a écrit :

I'm completely new to lvm.


Then you really should read more about LVM and experiment it before 
installing a system on LVM.



lvs
LV VG   Attr   LSize   Pool Origin Data%  Meta%  Move Log
Cpy%Sync Convert
root   build-vg -wi-ao 463.52g
swap_1 build-vg -wi-ao   2.00g

I used the default stretch of an lvm partition with the gnome.

To me, it seems me the partition is too large to to reduce for snapshots.


What do you mean ?
Did you allocate all the available space in the volume group to the 
logical volumes ? Creating snapshots requires space.



What would be a good layout for a stretch install doing lvm snapshots?


When installing with LVM, an important rule is to always leave plenty of 
free space in the volume group. Don't worry, extending a logical volume 
when needed is easy. This implies to use manual partitioning, because 
guided partitioning allocates all the available space.




LVM setup with snapshots

2018-05-10 Thread Forest Dean Feighner
I'm completely new to lvm.

lvs
LV VG   Attr   LSize   Pool Origin Data%  Meta%  Move Log
Cpy%Sync Convert
root   build-vg -wi-ao 463.52g
swap_1 build-vg -wi-ao   2.00g


I used the default stretch of an lvm partition with the gnome.


To me, it seems me the partition is too large to to reduce for snapshots.

I'm prolly not 'getting' lvm yet.

What would be a good layout for a stretch install doing lvm snapshots?

Thanks
Forest

"I've bin kinda lazy lately'