Discussion:
[Squeeze]: install with lvm partitioning
(too old to reply)
Rino Del Campo
2012-03-16 22:10:02 UTC
Permalink
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
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@brain-debug.org
Rino Del Campo
2012-04-24 10:40:01 UTC
Permalink
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
http://lists.debian.org/debian-s390/2011/02/msg00017.html):
# cat > /etc/initramfs-tools/scripts/init-top/dasd <<EOF
#!/bin/sh

PREREQ=""
prereqs()
{
echo "\$PREREQ"
}
case \$1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac

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

(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
[defaultboot]
defaultmenu = menu

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

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

(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
mbr.

This time the system is bootable.

Regards,
Rino
Post by Rino Del Campo
Hi all,
is there a solution to install debian with a lvm partitioning?
-- 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
(1) in "stable" case the debian-installer returns to me an error on
"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
"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
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: http://lists.debian.org/***@brain-debug.org
Loading...