NetBSD-Bugs archive

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

port-amd64/54776: install media does not contain support for LVM



>Number:         54776
>Category:       port-amd64
>Synopsis:       install media does not contain support for LVM
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 17 20:15:00 +0000 2019
>Originator:     Erc Hvozda
>Release:        0.9_RC1
>Organization:
Automation Programming, Inc
>Environment:
NetBSD  9.0_RC1 NetBSD 9.0_RC1 (GENERIC) #0: Wed Nov 27 16:14:52 UTC 2019  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
It appears that the install media does not have all the required drivers to support LVM on amd64.

lvcreate fails with:
File descriptor 12 () leaked on lvm invocation. Parent PID 12:
  Failure to communicate with kernel device-mapper driver.
  striped: Required device-mapper target(s) not detected in your kernel
  Run 'lvcreate --help' for more information.

This has been an ongoing problem since NetBSD 8.0_RC*

I tried to submit a PR for it; but I miserably failed to do so "^/

I view this idea of NetBSD install media containing all the minimums to be "emergency boot media" in the event of FAIL a important tool to have in one's back pocket.

I cannot tell you how many times over the years it has saved me.

I can remember a time when ccd and RAIDframe was not on the install media as well.

I believe LVM meets that bar...
>How-To-Repeat:
Boot a system with 2 hard disks with the amd64 NetBSD 9.0_RC1 media

Drop out of the installer to the shell and do this:

gpt create wd0
gpt add -t raid -b 64 wd0
gpt create wd1
gpt add -t raid -b 64 wd1
cat > /tmp/x
START array
1 2 0
START disks
/dev/dk0
/dev/dk1
START layout 63 1 1 1
START queue
fifo 100
^D
raidctl -C /tmp/x raid0
raidctl -I 202012170 raid0
raidctl -i raid0
raidctl -A yes raid0
lvm pvcreate /dev/rraid0d
lvm vgcreate -s 4m vg0 /dev/rraid0d
lvm lvcreate --name foo -L 10m vg0

>Fix:
I'm not as in the know as I was with NetBSD once upon a time, but perhaps ensuring that kernel contains the driver or it is shipped on the media since we are no longer using floppies?

For a comparable, the 7.0_RC* amd64 install media did not have this issue...



Home | Main Index | Thread Index | Old Index