LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2016, 02:51 PM   #16
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,176

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761

Quote:
Originally Posted by Emerson View Post
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.
 
Old 05-01-2016, 04:23 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by gezley View Post
explodepkg not found. depmod not found either.
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 View Post
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 View Post
Next problem - lilo is not happy with raid1 logical volumes. But at least progress.
What are the errors you're getting?
 
1 members found this post helpful.
Old 05-01-2016, 04:56 PM   #18
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,176

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by bassmadrigal View Post
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
And that's the beauty of Slackware: a simple and elegant solution I completely overlooked. Thanks.
Quote:
What are the [lilo] errors you're getting?
Fatal: device-mapper: only linear boot device supported

I assume the problem here is that lilo will not boot a raid1 LV.
Attached Thumbnails
Click image for larger version

Name:	lvcreate-error.png
Views:	14
Size:	5.2 KB
ID:	21668   Click image for larger version

Name:	lvdisplay.png
Views:	12
Size:	29.1 KB
ID:	21669   Click image for larger version

Name:	lilo-error.png
Views:	12
Size:	30.8 KB
ID:	21670  

Last edited by Gerard Lally; 05-01-2016 at 04:59 PM.
 
Old 05-01-2016, 06:48 PM   #19
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 05-02-2016, 09:24 AM   #20
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,176

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by bassmadrigal View Post
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.

Thanks for your help.
 
  


Reply

Tags
lvm raid1 installer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to remove missing PV on LVM mirror raid1 abacus4772 Red Hat 0 02-13-2015 04:44 AM
[SOLVED] lvm and luks on raid1 in slackware64-14.1 slac-in-the-box Slackware 10 03-24-2014 10:38 PM
Rebuild RAID1 with LVM bit_head Linux - Hardware 1 12-28-2013 12:42 PM
lvm ontop of raid10 or combine two raid1 via lvm? okar Linux - Server 3 09-11-2009 02:37 PM
RAID1+LVM: data keeps getting corrupted Chojin Linux - Software 4 10-22-2006 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration