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

Re: [Squeeze]: install with lvm partitioning

Hi folks,
I found a solution!

I have installed debian from d-i with kernel and initrd from stable branch.
As mentioned in previous email, I got several error messages.

After partinioning I performed the following steps:

(1) open a connection with d-i in shell mode

(2) chroot in target filesystem:
        # mount -o bind dev /target/dev
        # mount -t proc none /target/proc
        # mount -t sysfs none /target/sys
        # chroot /target /bin/sh

(3) create an init-top script in initrd called dasd (as indicated in
        # cat > /etc/initramfs-tools/scripts/init-top/dasd <<EOF

    echo "\$PREREQ"
case \$1 in
# get pre-requisites
    exit 0

for x in \$(cat /proc/cmdline); do
    case \${x} in
            modprobe dasd_mod dasd=\${x#dasd=}

(4) allow exec permission on dasd file
        # chmod +x /etc/initramfs-tools/scripts/init-top/dasd

(5) create zipl.conf
        # cat > /etc/zipl.conf <<EOF
defaultmenu = menu

target = /boot
1 = debian
default = 1
prompt = 1
timeout = 3

target = /boot
image = /boot/vmlinuz
ramdisk = /boot/initrd.img
parameters = root=/dev/mapper/system-root dasd=0.0.0100

(6) rebuild initrd
        # update-initramfs -v -u -k 2.6.32-5-s390x

Afterwards, completing the remaining steps, the d-i regularly installs zipl on

This time the system is bootable.


On 16/03/2012 22:33, Rino Del Campo wrote:
> Hi all,
> is there a solution to install debian with a lvm partitioning?
> I want to partition my only dasd (vdev 100) in this way:
> -- Disk Partitions
> /dev/disk/by-path/ccw-0.0.0100-part1    /boot    EXT3
> /dev/disk/by-path/ccw-0.0.0100-part2    none    LVM
> -- Logical Volumes
> /dev/system/root    /      EXT3
> where "system" is vg_name and "root" is lv_name
> I have tested the images (kernel.debian, initrd.debian) taken from stable
> branch and unstable branch:
> (1) in "stable" case the debian-installer returns to me an error on
> partitioning disk with a message like this:
> "Partition(s) 2 on /dev/dasda have been written, but we have unable to inform
> the kernel of the change, probably because if/they are in use. As a result the
> old partition(s) will remain in use. You should reboot now before making
> further changes.".
> After completing the remaining steps without errors, the d-i informs me that
> ZIPL installation is failed: no /etc/zipl.conf created.
> Obviously, at restart the system is not bootable.
> (2) in "unstable" case the d-i denies me to use lvm in partitioning with a
> message like this:
> "The current kernel doesn't support the LVM. You may need to load the lvm-mod
> module"
> I looked in mailing-list messages, but I have not found anything.
> Thanks in advance
> Rino

Reply to: