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.
I'm interested in trying RAID first time ever, on Slackware64 14.2 up-to-date stable. I've read a little and seems it'll be RAID1, i.e., I'll have two identical model mirror drives. It's on ASUS Sabertooth 990FX system-/logic-/main-/mother-board, which I don't know has RAID controller or even applicable (SATA, not SCSI.) Slackware .ISO/CD/DVD has a RAID .TXT but describes for root partition. I only want /home RAID1. I don't want to do anything complicated like leave 100MB at the end, because if it fails, I probably won't replace it, or may replace both with much larger drives, start over. What's the best RAID1 setup document/tutorial/HOWTO just helping to mirror /home?
I support Richard advice. Use software raid not pseudo-hardware from your mainboard. With mainboard raid you can have problems with data access in case of its failure. And maintenance of this kind of raid is in system very limited.
With Linux software RAID you can do almost everything when system is up and running without any turn offs. About software raid you can in README_RAID.TXT in Slackware CD, or in "mdadm" manual. Additionally I recommend you to enable "bitmap" option as is speedup recovery significantly.
As fast hint, you can create RAID with following command:
If you not have additional drives, you can also create degraded RAID with only one driver by replacing second name by word "missing". You can copy then data from old drive to new one in RAID. Then remount /home to RAID and add then add old drive to array to make it real RAID1.
If you not feel comfortable with "mdadm", you can train earlier on some loop devices. See losetup for loop device management.
If you're moving /home to the new RAID you will need to mount the new RAID somewhere else first (/mnt/tmp) and transfer existing files across. Then change /etc/fstab to reflect the new RAID array for /home.
Labinnah's command will show you how easy it is to create a software RAID-1 array. You can use 1.2 metadata for the array because the boot limitation requiring 0.90 does not apply to /home.
When I partition devices I usually choose partition type of Linux, instead of Autodetect RAID. Someone will probably come along to tell me this is wrong but it works for me.
For my RAID setups I usually use partition type da - "Non-FS data".
The idea is to avoid type fd, "Linux RAID auto", as some problems can arise in the right circumstances when arrays are assembled automatically and parts from older, no longer used arrays, are left around. I understand that this is not a common problem however.
Last edited by TracyTiger; 07-16-2019 at 06:45 PM.
Thanks for all the replies. I still don't really think I'd understand how to do it (one person just suggested read a document for / instead of /home, which I already said was too complicated) but now I've decided not to do it, because I have too much data to back up. I'll mount the second drive as the largest directory in home, then just use both as they are. I don't want to 'stripe' across drives either, because then if one goes bad, I lose everything. If I just use them for different directories I'd only ever lose the stuff from those directories, not everything.
I'm marking this solved (since I changed my mind) but in the case of any other beginners at RAID reading it looking for a more simple complete tutorial or 'HOWTO', I don't think it's really solved.
Thanks for all the replies. I still don't really think I'd understand how to do it (one person just suggested read a document for / instead of /home, which I already said was too complicated) but now I've decided not to do it, because I have too much data to back up. I'll mount the second drive as the largest directory in home, then just use both as they are. I don't want to 'stripe' across drives either, because then if one goes bad, I lose everything. If I just use them for different directories I'd only ever lose the stuff from those directories, not everything.
I'm marking this solved (since I changed my mind) but in the case of any other beginners at RAID reading it looking for a more simple complete tutorial or 'HOWTO', I don't think it's really solved.
You've got to give a little more detail on what you've got NOW so that we can tell you how to get to THERE.
If you want detailed responses, you'll have to provide detailed current configuration and detailed future desired configuration.
Moving to software RAID isn't that difficult (not to be confused with Mark Twain's comments about quitting smoking), but we'd have to know what your drive setup is to provide any detailed information on how to move forward.
You've got to give a little more detail on what you've got NOW so that we can tell you how to get to THERE.
If you want detailed responses, you'll have to provide detailed current configuration and detailed future desired configuration.
Moving to software RAID isn't that difficult (not to be confused with Mark Twain's comments about quitting smoking), but we'd have to know what your drive setup is to provide any detailed information on how to move forward.
My first post had enough information but is irrelevant now.
My first post had enough information but is irrelevant now.
Actually, I don't believe it did.
Are you adding new drives? How big? How many? Do you have data in your /home directory already that you want to keep? Is your /home already mounted against a partition?
I realize that you're not interested in pursuing this matter further and that is absolutely OK. I'm only bringing this up for others who may read this thread in a quest for running RAID1 themselves and think that the amount of information you gave was sufficient for a detailed answer. I won't respond to this thread any more, so feel free to tell me that there is a reason I think that it is dark and foul smelling.
You can believe what you want, and I'll believe what I want.
Quote:
Are you adding new drives?
I stated I had planned to use two drives to try RAID1. To me in this case it doesn't matter if they were new or old, just as stated, they were identical model numbers (they were probably even from the same batch, since I bought them new from one seller at the same time, new, years ago.)
Quote:
How big?
Irrelevant. I didn't ask you to tell me how to use fdisk or a GPT fdisk program. I'd have tried them first without space at the end and if that didn't work, retry.
Quote:
How many?
Stated at the beginning but I guess you speed-read it (incompletely.)
Quote:
Do you have data in your /home directory already that you want to keep? Is your /home already mounted against a partition?
Irrelevant. Of course, I have backups. I was only interested in setting up RAID1 and copying data to it. After I read a bit I realized you have to setup RAID partitions. Obviously I didn't have those yet so obviously the data would have to have been copied in. I wasn't asking how to double-check my backup and unmount, though I would've needed to know anything special about mounting raid partitions.
As always, the truth lies, in between. @dchmelik - you provide not sufficient info to write DETAILED answer; @Richard - not necessary all point you write a in fact very important.
Is important how many NEW drives you add - new in meaning not used in system. If you add just one new drive procedures will be different from those when you add two new.
They will also differ when you have home on separated partition/drive and you want use it as part of RAID or no.
If you just want, as you write in last post, just setup RAID1, command I wrote in my previous post will be sufficient. It will create working, active RAID1. It will probably not assemble automatically after reboot without some other minor steps, but will for sure work for here and now.
As always, the truth lies, in between. @dchmelik - you provide not sufficient info to write DETAILED answer; @Richard - not necessary all point you write a in fact very important.
False: at the beginning I stated how many drives I'd use (two, and for what type of RAID: 1) and for what (only /home.) As explained, the size of my drives/filesystems (fs) was irrelevant (things should be explained whether you use DOS-type or GPT MBRs) but I knew almost nothing about RAID... whether it was its own fs type.
Quote:
Is important how many NEW drives you add - new in meaning not used in system. If you add just one new drive procedures will be different from those when you add two new.
They will also differ when you have home on separated partition/drive and you want use it as part of RAID or no.
That would've been interesting to know, but I said I was using two (so either have '/home' (which most people have, and from the time I've been here, it's clear I have...) and adding a mirror, or adding two that will mirror and making a new /home)... obviously if there was no reason to erase /home and copy from backup, I wouldn't.
Quote:
If you just want, as you write in last post, just setup RAID1, command I wrote in my previous post will be sufficient. It will create working, active RAID1. It will probably not assemble automatically after reboot without some other minor steps, but will for sure work for here and now.
Thank you. Thank you to Richard, also, thought the amount of extra stuff he said confused me for a while (such as example for / rather than /home, but I had no idea if when people boot from RAID it's setup different from if they have /home on RAID.) Going back, now I see (such as Labbinnah's command, and earlier, how things might be mounted) how I could set this up maybe for any directory... however, I still feel I only have a vague-type basic idea of it mixed up in which some aspects may or not be unstated, and extra aspects are stated. Maybe if I still try it from your command in the future, it'd work, or maybe I'd have to continue this thread.
Theoretically I'm still interested in hardware RAID; saw zero explanation why that's 'pseudo-raid,' or why it'd fail less than software, and if it fails, likely you will know, and likely other things failed earlier so you'd want to replace system-/logic-/main-/mother-board... that's also why people should do backups! One aspect is perhaps does software RAID use more system resources than hardware RAID...?
Well, most RAID enabled cards that you'd probably buy in the consumer market are running the same algorithms as software RAID. There's potentially the added twist that they might structure the meta-data so that only their specific cards are able to understand that meta-data; ergo, if your current card fails, you'll have to buy another one from the same company in order to resurrect your RAID array(s).
I've migrated entire systems that used software RAID and I didn't give a rat's ass about the underlying SATA controller hardware, because I didn't have to.
As I believe that I mentioned earlier, I have not been able to detect a major drain upon my system resources while running software RAID. I've got many RAID-1 arrays running about, and one RAID-5 array.
But, if you want to experiment and have good backups, there's absolutely no reason for you to not to use hardware RAID. For that matter, as long as you have good backups, there's no reason to treat it as an experiment; just use hardware RAID.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.