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

RE: Multi-disk partman-auto LVM expert_recipe problems



Missed a line in the output, the cause of the hang:

Partman-auto: Available disk space (8012) too small for expert recipe (161200); skipping

-james

-----Original Message-----
From: KYLE, JAMES 
Sent: Monday, February 20, 2012 3:43 PM
To: debian-boot@lists.debian.org
Subject: RE: Multi-disk partman-auto LVM expert_recipe problems

*** Security Advisory: This Message Originated Outside of AT&T ***.
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.

In an attempt to start from a minimal config and build, I've come up with this partman. However, it's not working for me either. 

Here are the issues I'm seeing:

- Though I have specified only a single disk to partman-auto/disk string of /dev/sdb and specifically declare the device in my lvm physical volume, the recipe is using _both_ of my disks. 

- the recipe freezes after detecting disks:

Partman: PV /dev/sda2 VG hostname lvm2 [3.64 TiB / 0 free]
Partman: PV /dev/sdb1 VG hostname lvm2 [7.46 GiB / 0 free]
Partman: Total: 2 [ 3.64 TiB] / in use: 2 [3.64 TiB] / in no VG :0 [0    ]
Partman: Reading all physical volumes. This may take a while....
Partman Found volume group "hostname" using metadata type lvm2
Partman-lvm: 2 logical volume(s) in volume group "hostname"now active
Partman-lvm: VG #PV #LV #SN Attr VSize VFree
Partman-lvm: hostname 2 2 0 wz--n- 3.64t 0

----------Start Recipe-------------------

d-i partman-auto/disk string /dev/sdb
d-i partman-auto/method string lvm

d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/device_remove_md  boolean true d-i partman-lvm/confirm_nooverwrite boolean true

d-i partman-auto/choose_recipe select boot-root d-i partman/default_filesystem string ext4

d-i partman/confirm_write_new_label boolean true d-i partman-auto/purge_lvm_from_device boolean true d-i partman-lvm/confirm boolean true d-i partman/confirm boolean true
d-i partman-auto/expert_recipe string                         \
  boot-root ::                                            \
    200 200 200 ext3                                \
      $primary{ } $bootable{ }                \
      method{ format } format{ }              \
      use_filesystem{ } filesystem{ ext3 }    \
      mountpoint{ /boot }                     \
      .                                               \
    20000 20000 20000 ext4                          \
      $primary{ }                             \
      method{ format } format{ }              \
      use_filesystem{ } filesystem{ ext4 }    \
      mountpoint{ / }                         \
      .                                               \
    90000 8000 150% linux-swap                       \
      $primary{ }                             \
      method{ swap } format{ }                \
      .                                               \
    50000 50000 -1 ext4                             \
      $lvmok{ }                               \
      method{ format } format{ }              \
      use_filesystem{ } filesystem{ ext4 }    \
      mountpoint{ /home }                     \
      .                                               \
    1000 1000 -1 ext4                               \
      $defaultignore{ }                       \
      device{ /dev/sdb }                 \
      method{ lvm }                           \
    .                                               \
d-i partman/mount_style select uuid
d-i partman/choose_partition \
        select Finish partitioning and write changes to disk

----------------End Recipe-----------------------------


-james
-----Original Message-----
From: KYLE, JAMES
Sent: Sunday, February 19, 2012 1:19 PM
To: debian-boot@lists.debian.org
Subject: Multi-disk partman-auto LVM expert_recipe problems

*** Security Advisory: This Message Originated Outside of AT&T ***.
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.

I'm attempting to create a hands off debian install that partitions out our servers. Each server has a single internal 8GB SSD and a hardware RAID 10 volume we'll use for volatile storage (/var, /tmp, /home).

All partman* d-i options are included below. When using the full recipe, I would get "no volume groups found" followed by "available disk space (4006626) too small for expert recipe (2200004100)".

My understanding of the size specifications are that given:

3000 2000 1000000000

The minimum is 3000 MB, with max of all space available, and a priority of 2000. So if the minimums fit within the size of the drive, it should succeed. But it looks like it's adding up all the maxes including those of the primary LVM physical volumes for which the logical are a members. 

On a side, in the list archives I saw it mentioned that the \ are not needed...but when I remove them the pxe boot throws an invalid preseed file error.

Any tips are greatly appreciated.

Cheers,

-james kyle

d-i partman-auto/disk string /dev/sda /dev/sdb d-i partman/default_filesystem string ext4 d-i partman/confirm_write_new_label boolean true d-i partman/confirm boolean true d-i partman-auto/method string lvm d-i partman-auto/purge_lvm_from_device boolean true d-i partman-lvm/confirm boolean true d-i partman-lvm/device_remove_lvm boolean true

d-i partman-auto/expert_recipe string                           \
        physical-volumes ::                                            \
                100 1000 1000000000 ext3                \
                       $defaultignore{}                \
                       $primary{}                      \
                       $method{ lvm }                  \
                       device{ /dev/sdb }              \
                       vg_name{ vg00 } .		\
                100 1000 1000000000 ext3                \
                        $defaultignore{}                \
                        $primary{}                      \
                        $method{ lvm }                  \
                        device{ /dev/sda }              \
                        vg_name{ vg01 }                 \
                .\
	logical-volumes ::
                100 500 200 ext3                        \
                        $lvmok{}                        \
                        lv_name{ lvboot }               \
                        in_vg{ vg00 }                   \
                        $primary{ }       $bootable{ }          \
                        method{ format }  format{ }             \
                        use_filesystem{ } filesystem{ ext3 }    \
                        mountpoint{ /boot }             \
                .\
               3000 2000 1000000000 ext4                     \
                       $lvmok{ }                       \
                        in_vg{ vg00 }                 \
                       lv_name{ lvroot }                \
                       method{ format }  format{ }     \
                       use-filesystem{ } filesystem{ ext4 } \
                       mountpoint{ / }              \
               .\
                100000 1000 200000 ext4                     \
                        $lvmok{ }                       \
                        in_vg{ vg01 }                 \
                        lv_name{ lvhome }                \
                        method{ format }  format{ }     \
                        use-filesystem{ } filesystem{ ext4 } \
                        mountpoint{ /home }              \
                .\
                1000 500 2000 ext4                    \
                        $lvmok{ }                       \
                        in_vg{ vg01 }                 \
                        lv_name{ lvtmp }                \
                        method{ format }  format{ }     \
                        use-filesystem{ } filesystem{ ext4 } \
                        mountpoint{ /tmp }              \
                .\
               100000 450 150% linux-swap               \
                       $lvmok{ }                       \
                        in_vg{ vg01 }                 \
                        lv_name{ lvswap }               \
                        method{ swap }                  \
                        format{ }               \
                .\

                3000000 5000 1000000000 ext4                    \
                        $lvmok{ }                       \
                        in_vg{ vg01 }                 \
                        lv_name{ lvvar }                \
                        method{ format }  format{ }     \
                        use-filesystem{ } filesystem{ ext4 } \
                        mountpoint{ /var }              \
                .\
d-i partman-auto/choose_recipe select vg00

d-i partman/choose_partition \
        select Finish partitioning and write changes to disk


--
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 60C9E1C4ECD51C4AA7FD316389ECD77EDE3853@CAFRFD1MSGUSR9M.ITServices.sbc.com">http://lists.debian.org/[🔎] 60C9E1C4ECD51C4AA7FD316389ECD77EDE3853@CAFRFD1MSGUSR9M.ITServices.sbc.com


--
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 60C9E1C4ECD51C4AA7FD316389ECD77EDE819E@CAFRFD1MSGUSR9M.ITServices.sbc.com">http://lists.debian.org/[🔎] 60C9E1C4ECD51C4AA7FD316389ECD77EDE819E@CAFRFD1MSGUSR9M.ITServices.sbc.com


Reply to: