System array disappears upon restart
System array disappears upon restart
Hello everyone, I'm just starting with Linux (Kubuntu) and have been attempting to set up a RAID array for the last couple of days. I have four 6TB drives that I want to use for a RAID 5 setup. After creating the array, it disappeared after a reboot. From what I've learned, the array isn't being assembled at boot. Is that accurate? How can I resolve this issue? I've attached a screenshot for reference. I hope this helps with troubleshooting. Let me know if you need anything else. Thanks.
Consider using a tool named Webmin. It handles many tasks and simplifies setting up a persistent RAID. Include the Webmin repository in your sources.list file and install via your package manager (Synaptic, apt). After installation, open your browser and connect to https://localhost:10000. During setup, Webmin will confirm mdadm is already present and display the RAID configuration. It's a straightforward process. HTH!
Thanks for the update. The RAID page is displaying an active RAID5 with only 40.5MiB, which is puzzling. When you select RAID5 (Distributed Parity) and click the green "Create RAID device of LEVEL" button, choosing RAID device 0 doesn’t seem to work. I’ve also attached two more screenshots. Should I need to remove this RAID array and start fresh via Webmin?
Move the root file or prefix with sudo to create a backup of mdadm.conf. Restart the system to generate a fresh configuration. This action may either produce a new file or leave it unchanged, allowing you to set up a new RAID via the web interface. If a 40MB RAID appears again, remove it completely by selecting the array and using the designated button on the next screen. Remember, for assembling an array, ensure each drive has compatible file systems—ideally format drives before adding them to RAID. Install fdisk (or similar tools) and format each disk as a single ext4, JFS or XFS partition, then attempt to form the RAID.
The RAID is now functioning correctly and assembles properly at boot. For your questions: 1. You can modify how you interact with the RAID device by adjusting settings in the terminal or using appropriate commands; otherwise, you may need to change shortcuts manually. 2. Setting up email alerts via Webmin is possible through its configuration menu—follow the provided steps in the attachment for sending emails and monitoring disk health.
View the fstab file contents. For the email section, I haven't handled it directly, but consider changing the sender to Default.
The configuration file lists storage details. # Disks were mounted at specific points with particular settings. # During setup, certain devices had UUIDs assigned for identification. # Mount options include remount capabilities and permissions for swap and swap files. # Filesystems are managed using ext4 defaults with defined mount parameters.
Ensure you have both read and write access to the /mnt/raid folder. Adjust permissions using chmod -R +rwx on that directory. Alternatively, consider reassigning full control to your regular user for simplicity, though this introduces some security considerations.