Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Apr 19, 2018 4:31 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 16 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Thu Jul 10, 2014 4:20 am 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
OK, I messed up. I have a 4-disk 8TB NAS and a 4-disk 12TB NAS. Both are LS-QVL/R5, both are configured in JBOD

It's a long story but basically I used the remove disk function in order to move a disk to another NAS and replace it with a new disk. Now I can't add it to the NAS without formatting. Is my data still there? How can I recover it?

THE LONG STORY:
Disk2 of my 12TBNAS suffered a critical failure. While I was trying to figure out the best method of data recovery it stayed offline. That is until a family member took Disk2 from the 8TB and stuck it in the 12TB. The result was that the 12TB ran with an identity crisis. It was identified as the 8TB and had shares from both. After paying $600 to have the failed drive recovered I had to put a blank disk in the 12TB so I could transfer the recovered data. I turned the unit off, pulled the drive, put in the blank drive, and rebooted it. It went into EM mode. OK, I figured I could reflash the box enough to format disk 2 - it wanted to format the whole NAS. So I backtracked, put the 8TB disk back (to get it out of EM mode) and did some research. I found the remove disk option which supposedly meant no data loss - it sounded a lot like a hotswap method. Boy that was wrong. In retrospect I should've realized my situation is pretty unique.

The 12TB is working now. Removing the disk allowed me to insert the new drive and format it. Problem is the 8TB doesn't recognize its disk2 (because I used the remove disc function) and the only way to add it is to format it.

I noticed my situation is similar to the one in this topic: viewtopic.php?f=66&t=25771 but I'm not that acquainted with ubuntu/linux.


Top
   
PostPosted: Thu Jul 10, 2014 5:39 am 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2717
On Buffalo Linkstations
JBOD is also a raid
(raid1 with one disk missing)

1.
read about mdadm
open ssh
use mdadm

begin with

Code:
cat /proc/mdstat




or

2.
try ufs explorer
You have to pay for it!


Top
   
PostPosted: Thu Jul 10, 2014 3:06 pm 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
Thanks for the quick reply.

I don't want to spend the money but I'm going for option 2 because I usually boot ubuntu off a thumbdrive and it randomly locks up (obviously not good for data recovery purposes). I have not bought the license yet I'm just using UFS for diagnostic purposes.

UFS reads it as an unknown partition with no valid filesystem. When I go to recover, it asks me to choose the filesystem. What do I choose? SGI XFS? EDIT: I found the tutorial on the ufs explorer site: http://www.ufsexplorer.com/inf_linkstation.php - there is no mention of RAID1 with no valid filesystem. Should I attempt to recover it anyways?

If it would help I can use ubuntu to at the very least diagnose the situation.

EDIT 2 - I thought I'd try contacting ufs explorer support but I get a 404 error. I can't help but feel that if things go sideways I'd be up a creek (so to speak)


Top
   
PostPosted: Fri Jul 11, 2014 2:14 am 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2717
post the output from

Code:
cat /proc/partitions


Code:
cat /proc/mdstat


Top
   
PostPosted: Fri Jul 11, 2014 4:52 am 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
Flash drive is dead - the usb format tool froze while I was reformatting it. I feel like I have a black thumb. I will try again with tomorrow.

Thanks for your help. Sorry I couldn't do it today.

EDIT - I ran ubuntu from another usb thumbdrive. I installed the mdadm package and the whole thing locked up (my mouse would move around but the OS stopped responding). I checked my laptop for RAM issues but it came back clean. I tried running it on another computer (Acer AspireX) but it doesn't recognize the USB drive as a boot option. I'm looking into installing ubuntu onto an external hard drive but I'm not sure that'll help.

EDIT 2 - Finally got it all working. The disk in question is /dev/sdc. Here are the outputs:

Code:
paul@Y550-Ubuntu:~$ cat /proc/mdstat
Personalities :
unused devices: <none>

Code:
paul@Y550-Ubuntu:~$ cat /proc/partitions
major minor  #blocks  name

   8        0  488386584 sda
   8        1     204800 sda1
   8        2  440991936 sda2
   8        3          1 sda3
   8        4   15471448 sda4
   8        5   31715328 sda5
  11        0    1048575 sr0
   8       16  312571224 sdb
   8       17  244210688 sdb1
   8       18          1 sdb2
   8       21   68358144 sdb5
   8       32 1953514584 sdc

AND in case it helps
Code:
paul@Y550-Ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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
Disk identifier: 0x7c1650c5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800    7  HPFS/NTFS/exFAT
/dev/sda2          411648   882395519   440991936    7  HPFS/NTFS/exFAT
/dev/sda3       882397568   945830271    31716352    f  W95 Ext'd (LBA)
/dev/sda4       945830272   976773167    15471448   12  Compaq diagnostics
/dev/sda5       882399616   945830271    31715328    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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
Disk identifier: 0x83727a0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048   488423423   244210688   83  Linux
/dev/sdb2       488425470   625141759    68358145    5  Extended
/dev/sdb5       488425472   625141759    68358144   82  Linux swap / Solaris

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table


I don't know if it will help, but I used the fdisk function to compare the other drives:
Disk 1:
Code:
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1  3907029167  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md125: 1984.8 GB, 1984831545344 bytes
2 heads, 4 sectors/track, 484578014 cylinders, total 3876624112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk 3:
Code:
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1  3907029167  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md123: 1984.8 GB, 1984831545344 bytes
2 heads, 4 sectors/track, 484578014 cylinders, total 3876624112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md123 doesn't contain a valid partition table


Disk 4:
Code:
Disk /dev/sde: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1  3907029167  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/md122: 1984.8 GB, 1984831545344 bytes
2 heads, 4 sectors/track, 484578014 cylinders, total 3876624112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md122 doesn't contain a valid partition table


EDIT - I know I need to use mdadm, and I found this related topic on the CentOS forums, but I'm not sure I understand the process enough to move forward by myself.


Top
   
PostPosted: Thu Jul 17, 2014 7:50 pm 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
OK, I smartened up (a bit) and re-ran the commands with drive 1 attached. I only have one eSata cable - I'm going to try sticking drive 2 in an enclosure and see how that works. Anyways, here is the output from drive 1:
Code:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md124 : inactive sdc1[0](S)
      1000384 blocks
       
md125 : inactive sdc2[0](S)
      4999168 blocks super 1.2
       
md126 : active (auto-read-only) raid1 sdc6[0]
      1938312056 blocks super 1.2 [2/1] [U_]
     
md127 : inactive sdc5[0](S)
      1000436 blocks super 1.2
       
unused devices: <none>

Code:
paul@Y550-Ubuntu:~$ cat /proc/partitions
major minor  #blocks  name

   8        0  488386584 sda
   8        1     204800 sda1
   8        2  440991936 sda2
   8        3          1 sda3
   8        4   15471448 sda4
   8        5   31715328 sda5
  11        0    1048575 sr0
   8       16  312571224 sdb
   8       17  244210688 sdb1
   8       18          1 sdb2
   8       21   68358144 sdb5
   8       32 1953514584 sdc
   8       33    1000448 sdc1
   8       34    5000192 sdc2
   8       35       1024 sdc3
   8       36       1024 sdc4
   8       37    1000448 sdc5
   8       38 1938313216 sdc6
   9      126 1938312056 md126


Top
   
PostPosted: Thu Jul 17, 2014 10:12 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2717
Quote:
md126 : active (auto-read-only) raid1 sdc6[0]
1938312056 blocks super 1.2 [2/1] [U_]


Code:
mkdir /mnt/test

mount /dev/md126 /mnt/test

ls -l /mnt/test


Top
   
PostPosted: Fri Jul 18, 2014 4:57 am 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
Do I need to have Disk 1 and 2 mounted in order, or can I just create and mount the the directory with drive 2 alone?


Top
   
PostPosted: Fri Jul 18, 2014 4:51 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2717
drive 2 alone


Top
   
PostPosted: Mon Jul 21, 2014 5:15 am 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
I was going to do a bit-by-bit copy of the drive when it occurred to me to use the other drives for info. I noticed that drives 1, 3, and 4 have a SGI XFS filesystem that begins at sector 14010368 (0x00D5C800) and ends at sector 3890634752 (0xE7E66000). Is that helpful?


Top
   
PostPosted: Mon Jul 21, 2014 5:39 am 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2717
not for me


Top
   
PostPosted: Mon Jul 21, 2014 8:20 pm 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
Code:
paul@Y550-Ubuntu:~$ sudo fdisk -l
[sudo] password for paul:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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
Disk identifier: 0x7c1650c5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800    7  HPFS/NTFS/exFAT
/dev/sda2          411648   882395519   440991936    7  HPFS/NTFS/exFAT
/dev/sda3       882397568   945830271    31716352    f  W95 Ext'd (LBA)
/dev/sda4       945830272   976773167    15471448   12  Compaq diagnostics
/dev/sda5       882399616   945830271    31715328    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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
Disk identifier: 0x83727a0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048   488423423   244210688   83  Linux
/dev/sdb2       488425470   625141759    68358145    5  Extended
/dev/sdb5       488425472   625141759    68358144   82  Linux swap / Solaris

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table
paul@Y550-Ubuntu:~$ mkdir /mnt/test
mkdir: cannot create directory ‘/mnt/test’: Permission denied


EDIT - I don't know why I received a permission error but after some more searching I found an excellent tutorial for Testdisk. I used it to analyze the disk and it found the partition(s) - not sure if it found all of them, or if it will work straight away - but I can view and copy my files using Ubuntu. I'm copying my files now and probably tomorrow I can try and see if it works in the NAS or if I'll have to reformat it first.

Thank you for your help. Even if I didn't do the best at following your directions you helped me focus the build up of nervous energy. I can't wait for this chapter of bad tech to be over.


Last edited by kopoloko on Mon Jul 21, 2014 9:15 pm, edited 1 time in total.

Top
   
PostPosted: Mon Jul 21, 2014 9:10 pm 
Offline
Moderator

Joined: Mon Apr 26, 2010 10:24 am
Posts: 2717
Quote:
Permission denied


you are paul
you have to be root

use
Code:
su -


but there is a big problem

Quote:
Disk /dev/sdc doesn't contain a valid partition table


repair it with
http://www.cgsecurity.org/wiki/TestDisk


Top
   
PostPosted: Mon Jul 21, 2014 9:19 pm 
Offline
Newbie

Joined: Sat Nov 30, 2013 9:01 pm
Posts: 10
Ah, thanks. You'd think that would be obvious... Yeah, see my previous post/edit.


Top
   
PostPosted: Tue Jul 22, 2014 6:35 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
Try "parted" before. As the warning said, fdisk can NOT handle
GPT partitioned disks and Buffalo uses GPT on kirkwood boxes.
So the "invalid" partition table could be a result of using fdisk
instead of parted and not of an invalid partition table.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 16 posts ]  Go to page 1 2 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited