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

Re: adding a disk to a Volume group




On 21/12/20 4:27 pm, mick crane wrote:
On 2020-12-20 20:38, Charles Curley wrote:
On Sun, 20 Dec 2020 19:05:45 +0000
mick crane <mick.crane@gmail.com> wrote:

It's a more or less new bullseye installation.
The installer kindly set up a Volume Group and added Logical Volumes
of a couple of the partitions on the disk with the OS on it.
I want to add another disk to use for data.

A couple of thoughts here.

* Are you adding the new disk permanently or as removable media?

  If the latter, put a separate VG on it. Or don't bother. The reason I
  suggest this is if the new disk is removable, having the same VG span
  both disks may make the permanent disk unusable if the removable one
  is gone.

  If it is permanent, consider redoing both of them as a RAID level
  1, with encryption and LVM on top of that. Be sure to leave a boot
  partition on at least one of them.

* You said nothing about encryption. That may impact the order in which
  you do things.

From what I can gather there's not much point adding new disk to the LVM if I'm going to use the whole disk as one partition so I formatted it ext4 and mount it somewhere in my home directory.

The default netinstaller doesn't seem to make the boot partition big enough as with the vmlinux off the install media then vmlinux.old and new vmlinux the device was out of space if upgrade so had to remove the original kernel gubbins from the install media. At least that seems to be what happened. I'll have to understand LVM at some point to see if I can make boot LV bigger.


The LVM howto is your friend


https://tldp.org/HOWTO/LVM-HOWTO/


There is a chapter with examples on most things you might want to do, along with common tasks.



mick

--
a good plan executed right now is often better than a perfect plan executed slowly. George Patton.


Reply to: