Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] LVM and moving things around
Date: Sun, 27 Mar 2022 19:17:40
Message-Id: d44624e0-0f4f-fb86-6455-cf2d66d6b5db@gmail.com
1 Howdy,
2
3 I sort of started this on another thread but wanted to nail a few things
4 down first.  I'm wanting to encrypt some parts of my data on /home. 
5 This is what I got hard drive wise.
6
7
8 root@fireball / # pvs
9   PV         VG     Fmt  Attr PSize    PFree
10   /dev/sda7  OS     lvm2 a--  <124.46g 21.39g
11   /dev/sdb1  Home2  lvm2 a--    <5.46t     0
12   /dev/sdc1  Home2  lvm2 a--    <7.28t     0
13   /dev/sdd1  Home2  lvm2 a--    <7.28t     0
14   /dev/sde1  backup lvm2 a--   698.63g     0
15 root@fireball / #
16
17
18 I've done some checking on sizes of things I want to encrypt and am
19 weighing options.  I use LVM which should help make things easier.  I've
20 downloaded and printed some howtos regarding shrinking the file system
21 and LVM thingys.  It seems I need to shrink the file system while my
22 /home partition is unmounted.  Then move the data off whichever drive I
23 want to remove and then remove the drive itself.  After that I can
24 encrypt the just removed drive and start moving files over, using rsync
25 is my plan.  I think that is the basic steps.
26
27 My question now comes to this.  When I encrypt one of the drives, can I
28 then expand that drive with it being encrypted or is that not a option? 
29 I plan to encrypt two of the drives as one volume group and leave one
30 other volume group as normal.  I just want to be sure whether or not I
31 can expand a encrypted LVM drive the same as a normal LVM since both
32 uses LVM.  I use cryptsetup commands to accomplish the encryption if
33 that matters.  So as a example, I start with one 7TB drive encrypted,
34 move some data to it, then want to add either the 5TB or 7TB drive.  Can
35 I just expand it like a normal LVM or does it being encrypted change
36 things? 
37
38 Thoughts?  My remove steps look sensible?  Expanding encrypted LVM
39 possible?
40
41 Dale
42
43 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] LVM and moving things around Wol <antlists@××××××××××××.uk>
Re: [gentoo-user] LVM and moving things around Dale <rdalek1967@×××××.com>