LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-28-2017, 04:37 PM   #1
Techno Guy
Member
 
Registered: Dec 2008
Posts: 62

Rep: Reputation: 15
Question Accessing data from old Synology JBOD


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.
 
Old 01-28-2017, 04:40 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,947

Rep: Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029
Quote:
Originally Posted by Techno Guy View Post
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.
 
Old 01-28-2017, 04:51 PM   #3
Techno Guy
Member
 
Registered: Dec 2008
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
Old 01-28-2017, 05:02 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,947

Rep: Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029
Quote:
Originally Posted by Techno Guy View Post
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.

Otherwise...going to be VERY difficult.
 
Old 01-28-2017, 05:14 PM   #5
Techno Guy
Member
 
Registered: Dec 2008
Posts: 62

Original Poster
Rep: Reputation: 15
Hmm, doesn't look good

I do have screenshots somewhere of what settings I all had.

Code:
root@debian:~#  fdisk -l

Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x72be9bb6

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048 40136703 40134656 19.1G 83 Linux
/dev/sda2       40138750 41940991  1802242  880M  5 Extended
/dev/sda5       40138752 41940991  1802240  880M 82 Linux swap / Solaris

Disk /dev/sdb: 3.7 TiB, 4000787025920 bytes, 976754645 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start        End    Sectors Size Id Type
/dev/sdb1           1 4294967295 4294967295  16T ee GPT

root@debian:~# mount -o ro /dev/sdb1 ./4tb/
mount: special device /dev/sdb1 does not exist

Last edited by Techno Guy; 01-28-2017 at 05:22 PM.
 
Old 01-28-2017, 06:40 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,787

Rep: Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574
That looks like mis-interpreted data - were the drives partitioned by the NAS box, or used as raw devices ?. What does "file -s /dev/sdb" return.
 
Old 01-28-2017, 06:52 PM   #7
Techno Guy
Member
 
Registered: Dec 2008
Posts: 62

Original Poster
Rep: Reputation: 15
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

Code:
root@debian:~# file -s /dev/sdb
/dev/sdb: DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 1, 4294967295 sectors, extended partition table (last)

Last edited by Techno Guy; 01-28-2017 at 06:53 PM.
 
Old 01-28-2017, 07:32 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,787

Rep: Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574Reputation: 3574
Quote:
Originally Posted by TB0ne View Post
Otherwise...going to be VERY difficult.
Basically says it all I reckon.
Without knowing how the (presumably) proprietary RAID0 is constructed, can't offer any help.
 
Old 01-28-2017, 09:46 PM   #9
Techno Guy
Member
 
Registered: Dec 2008
Posts: 62

Original Poster
Rep: Reputation: 15
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

The Seagate case: (0xEE)
https://cl.ly/080H2g2c2L2z

The connectland case:
https://cl.ly/0i2B2i1K0y2c

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)

Last edited by Techno Guy; 01-28-2017 at 10:18 PM.
 
Old 01-29-2017, 09:04 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,947

Rep: Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029
Quote:
Originally Posted by Techno Guy View Post
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

The Seagate case: (0xEE) https://cl.ly/080H2g2c2L2z
The connectland case: https://cl.ly/0i2B2i1K0y2c

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.
 
1 members found this post helpful.
Old 01-31-2017, 03:31 PM   #11
Techno Guy
Member
 
Registered: Dec 2008
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


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
error in accessing data in packets oracle89divi22 Linux - General 2 01-17-2012 02:18 PM
Accessing data from another os fizeelinux Linux - Newbie 12 12-15-2008 12:11 AM
accessing data on other pc daniela Linux - Newbie 6 09-17-2004 09:21 AM
accessing data from serial port PrerakParikh Linux - Hardware 2 08-24-2004 10:17 PM
Need alternatives for accessing data from cd's Trinity22 Linux - General 5 03-29-2004 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:39 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