Dec 16, 2012

openSUSE Forums: Adding Physical volumes to an existing LUKS encrypted LVM to expand size?

openSUSE Forums
openSUSE Forums
Adding Physical volumes to an existing LUKS encrypted LVM to expand size?
Dec 16th 2012, 18:03

Hello this is probably a somewhat advanced topic. I hope someone knows the answer.

I opted to go with the LUKS encrypted LVM setup using the Opensuse installer. I have:

LVG called system

/home (encrypted on system logical volume) dev-system-home (part of 'system' lvg)
/ (encrypted on system logical volume) dev-system-root (part of 'system' lvg)
swap (encrypted on system logical volume) dev-system-swap (part of 'system' lvg)
/boot (non encrypted boot partition) /dev/sdd1

The above are all on one 500 GB disk.

But I also have 3 other 80 GB disks which are unallocated. (actually I created another separate encrypted logical volume called data but let's pretend I haven't done that yet as I have no data on it and I can easily remove it -- I'd rather have it all added to the existed encrypted logical volume if this is possible without a lot of hassle)

Is it possible to add these three disks and the new space to my existing encrypted logical volume? So that instead of ~500GB in my /home I would have ~700GB in /home?

I know that if it were simply an unencrypted LVM I could do this. I also know that if it was all on one disk I could easily do it because I did something like it before: https://forums.opensuse.org/english/...-pointers.html but now what about adding on three 80 GB disks like this? :)


Code:

  --- Logical volume ---
  LV Name                /dev/system/home
  VG Name                system
  LV UUID                90bJD8-UKCV-ngHp-X4jU-e3xX-DSjh-kjomH8
  LV Write Access        read/write
  LV Status              available
  # open                1
  LV Size                425.00 GiB
  Current LE            108800
  Segments              2
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:1
 
  --- Logical volume ---
  LV Name                /dev/system/root
  VG Name                system
  LV UUID                y7iFhf-aWWt-fMu9-8nSu-PEV3-re3u-ACVnCr
  LV Write Access        read/write
  LV Status              available                                                                                                                                         
  # open                1                                                                                                                                                 
  LV Size                20.00 GiB                                                                                                                                         
  Current LE            5120                                                                                                                                             
  Segments              1                                                                                                                                                 
  Allocation            inherit                                                                                                                                           
  Read ahead sectors    auto
  - currently set to    256
  Block device          253:2
 
  --- Logical volume ---
  LV Name                /dev/system/swap
  VG Name                system
  LV UUID                BuGeKj-2wvA-zsEf-Tnl0-5922-T672-LLLytw
  LV Write Access        read/write
  LV Status              available
  # open                2
  LV Size                2.00 GiB
  Current LE            512
  Segments              1
  Allocation            inherit
  Read ahead sectors    auto
  - currently set to    1024
  Block device          253:3


So basically I would like to take disks /dev/sda + /dev/sdb + /dev/sdc (currently on a separate "data" LVG) and add them in the 'system' lvg instead and expand the '/dev/system/home' encrypted LV.

Code:

  --- Physical volume ---
  PV Name              /dev/sda1
  VG Name              Data
  PV Size              74.56 GiB / not usable 2.00 MiB
  Allocatable          yes (but full)
  PE Size              4.00 MiB
  Total PE              19087
  Free PE              0
  Allocated PE          19087
  PV UUID              QOvRgJ-P7Kb-g6RI-OLpM-Wxfa-AGz5-AW3CyN
 
  --- Physical volume ---
  PV Name              /dev/sdb1
  VG Name              Data
  PV Size              76.33 GiB / not usable 2.00 MiB
  Allocatable          yes (but full)
  PE Size              4.00 MiB
  Total PE              19541
  Free PE              0
  Allocated PE          19541
  PV UUID              JjE1zY-u0dp-jz6T-VOic-c2UB-BO5O-BQA0wp
 
  --- Physical volume ---
  PV Name              /dev/sdc1
  VG Name              Data
  PV Size              74.53 GiB / not usable 2.00 MiB
  Allocatable          yes
  PE Size              4.00 MiB
  Total PE              19079
  Free PE              3
  Allocated PE          19076
  PV UUID              5nynBe-Jini-SmVf-02MW-xeGf-HSf2-6v7T1T
 
  --- Physical volume ---
  PV Name              /dev/mapper/cr_sdd2
  VG Name              system
  PV Size              465.61 GiB / not usable 0 
  Allocatable          yes
  PE Size              4.00 MiB
  Total PE              119195
  Free PE              4763
  Allocated PE          114432
  PV UUID              0kwAo1-9hu4-IpGz-ibYI-izio-ZDlU-vY09jS

Documentation on this scenario is light. Most suggestions seem to be that it isn't possible and that it appears I am stuck either backing up and then repartitioning or just creating a separate LVM and mounting the extra space somewhere and encrypting it (as opposed to simply expanding my existing encrypted LVM to include the additional disks)

I hope I am not too confusing..

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: