LVM type raid1 - modules missing from installer kernel?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OK, I guess I lost you. What stops you from setting up LVM with mdraid?
Nothing whatsoever. That's precisely how I set up four Slackware servers back in 2009 and that's precisely the way they're still running today. Since 2009 of course, the LVM team have implemented raid inside LVM, and this is the only raid I am interested in here, in this thread.
I guess he doesn't include those in the installer, so to use those tools, you'd need to install them separately (or you could just manually extract the txz file so you don't need to install pkgtools, but if you're already installing one, it wouldn't hurt anything to install another).
Code:
installpkg /location/to/slackware64-current/a/pkgtools-14.2-noarch-6.txz
installpkg /location/to/slackware64-current/a/kmod-22-x86_64-1.txz
cd /tmp
explodepkg /location/to/slackware64-current/slackware64/a/kernel-huge-4.4.8-x86_64-1.txz
depmod -a -b /tmp
modprobe -d /tmp dm-raid
Quote:
Originally Posted by gezley
But I did extract kernel-modules (not kernel-huge) with xz -d and I did then successfully modprobe dm-raid. I was then able to lvcreate --type raid1 the logical volumes; there were some errors but the installer found the volumes and installed to them.
Awesome! Glad you got that part figured out. Now that I think of it, it makes sense you'd need to get it from kernel-modules package since kernel-huge wouldn't likely contain modules.
Quote:
Originally Posted by gezley
Next problem - lilo is not happy with raid1 logical volumes. But at least progress.
I guess he doesn't include those in the installer, so to use those tools, you'd need to install them separately (or you could just manually extract the txz file so you don't need to install pkgtools, but if you're already installing one, it wouldn't hurt anything to install another).
Did you have all your required partitions mounted (/dev, /proc, /sys)? According to this thread the person found that once they had everything mounted, the errors went away and it worked fine.
Did you have all your required partitions mounted (/dev, /proc, /sys)? According to this thread the person found that once they had everything mounted, the errors went away and it worked fine.
Yes I saw that thread. Since I chrooted into /mnt when the installer had finished I'm pretty sure the mounts were set up properly. Anyway, I won't be wasting any more time on this. I've since solved a NetBSD problem I had been having with my new UEFI motherboard so I can now go back to my preferred setup: a minimal NetBSD Xen dom0 with 1 Slackware pv domU, 1 Windows Server 2012 HVM domU and a few NetBSD domUs for whatever services I want to run.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.