Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
So a while back I sold my dual Synology box (needed the cash), but kept the 2 drives which were setup using JBOD, planning to buy a new (more slots) Synology box one day and pop the drives in and change to a more reliable RAID x array.
Anyway, been thinking lately if there is a way to rejoin the two drives in Linux. E.g. plug them both into external USB cases and software JBOD join the two drives.
I've been googling the idea but not getting much back.
Is this possible?
Last edited by Techno Guy; 01-28-2017 at 04:38 PM.
So a while back I sold my dual Synology box (needed the cash), but kept the 2 drives which were setup using JBOD, planning to buy a new (more slots) Synology box one day and pop the drives in change to a more reliable RAID x array.
Anyway, been thinking lately if there is a way to rejoin the two drives in Linux. E.g. plug them both into external USB cases and software JBOD join the two drives.
I've been googling the idea but not getting much back. Is this possible?
If you just had two drives before showing up as (let's say) /dev/sdb1 and /dev/sdc1, and you just mounted them to /mnt/one and /mnt/two...no reason you can't plug them in one at a time and read the data off, or even both via USB and read them. JBOD is just plain disks...no striping/parity/anything else.
If you're meaning "CONVERT JBOD to RAID"...I sure wouldn't, unless I had a good backup of the data. I've got a four-bay box now I use for non-critical backups, and have a software RAID on it. Using openSUSE and went through yast to do it...simple. Have it set not to mount when system boots.
I'm not sure how the drives showed up before, it was a Synology NAS box and just ticked "JBOD" to join the two drives as one, and would access the one volume via the network.
I'll plug in one drive and see what I can see in Debian.
Oh, no no, I'm not planning to convert JBOD to RAID, one day I will be switching to say RAID 5 (with more drives), but I'll move the data off the old JBOD drives and just start a fresh with RAID 5 when the time comes.
I'm not sure how the drives showed up before, it was a Synology NAS box and just ticked "JBOD" to join the two drives as one, and would access the one volume via the network.
I'll plug in one drive and see what I can see in Debian.
Oh, no no, I'm not planning to convert JBOD to RAID, one day I will be switching to say RAID 5 (with more drives), but I'll move the data off the old JBOD drives and just start a fresh with RAID 5 when the time comes.
If you joined the two drives as one, they weren't JBOD anymore. The NAS unit may have done a RAID Mirror on them (unknown, depends on model and what options you selected), but the easiest way to test is to plug one in via USB adapter, and see what you can see. If you can mount it, you're in luck.
They were 2 new 4TB drives which yes the NAS box (Synology DS214+) formatted to JBOD using what looks like ext4 volume format
I just found a photo which says it was JBOD and ext4, still sure I have more, with more details. (those filesystem errors were due to a power cut, and were fixed and the NAS box was running fine before I took the drives out.) https://cl.ly/1P1W1y0K3b2x
Edit:
So it would seem the Seagate external case I was plugging my NAS drive into does something to the data so that the computer doesn't read it as a RAID drive
Edit:
So it would seem the Seagate external case I was plugging my NAS drive into does something to the data so that the computer doesn't read it as a RAID drive
So I'll buy another connectland case and then assemble the linear (RAID?) and I should be golden. Thanks for your help guys.
Code:
root@debian:~# mdadm --examine /dev/sdc
/dev/sdc:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
root@debian:~# mdadm --examine /dev/sdc1
mdadm: No md superblock detected on /dev/sdc1.
root@debian:~# mdadm --examine /dev/sdc2
mdadm: No md superblock detected on /dev/sdc2.
root@debian:~# mdadm --examine /dev/sdc3
/dev/sdc3:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 408d7a50:b220bfb8:b136c02d:3e6a374e
Name : homenas:2
Creation Time : Fri Jan 17 19:19:16 2014
Raid Level : linear
Raid Devices : 2
Avail Dev Size : 7804592833 (3721.52 GiB 3995.95 GB)
Used Dev Size : 0
Data Offset : 2048 sectors
Super Offset : 8 sectors
Unused Space : before=1968 sectors, after=0 sectors
State : clean
Device UUID : 3524dfbe:85122c51:25fe2ff4:c7de1591
Update Time : Fri Jan 17 19:19:16 2014
Checksum : d43ac9f5 - correct
Events : 4
Rounding : 64K
Device Role : Active device 0
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
Good luck..you're going to need it. Unless your RAID controller hardware matches, you're going to have a REALLY bad time trying to do what you're after, with no data loss. If this was RAID1 (mirrored), you should be able to put ONE of the disks into the USB enclosure and mount/read/copy data off. After that, nothing you do will be harmed.
So today my other 3.5" HDD enclosure arrived, I plugged in the other 4TB drive and it showed up correctly now, connected both to my Debian VM and ran the assemble command, mounted it and bingo, done!
I must've been lucky that Synology uses just the standard Linear RAID (which they call JBOD) which mdadm can rejoin no problem.
I can access all 8TB files no problem. Though information about doing this seems very limited on the internet, so I hope this will help others trying to do the same.
Code:
root@debian:~# mdadm --assemble --scan
mdadm: /dev/md/homenas:2 has been started with 2 drives.
root@debian:~# mkdir /root/8tb/
root@debian:~# mount /dev/md/homenas\:2 /root/8tb/
Last edited by Techno Guy; 01-31-2017 at 03:34 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.