LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-18-2014, 07:44 AM   #16
didiw
Member
 
Registered: Oct 2009
Posts: 31

Rep: Reputation: 0

Hi,

Quote:
Originally Posted by tkalfaoglu View Post
I have a similar case where RAID1 disks have gone askew.
Unbeknowns to me, /dev/sdb now has NEWER stuff than /dev/sda , because for some months, sda was offline.
Now, sda became online, and sdb is off the raid. How can I recover the contents of sdb?
thanks! -t
I don't know, if your problem is already solved. Just in case you still need help, here is my advice:
Stop the raid, then start the raid with just /dev/sdb and add /dev/sda.
Code:
mdadm --stop <raiddev>
mdadm --assemble ---run -v /dev/mdx /dev/sdb
mdadm --add -v /dev/mdx /dev/sda
This should solve your problem, that you get your newest data back.

Regards
didiw
 
Old 08-12-2014, 07:58 PM   #17
TekMach
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
thanks!

tommylovell, your advice "Try 'mdadm --assemble --scan'" worked for me to mount the one good disk remaining of a degraded linux raid 1 pair. I know this thread is old but I just had to say thanks! System saw it immediately afterwards as an ext4 partition.
 
Old 11-13-2014, 11:29 PM   #18
archibaldrazmott
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by ljw1004 View Post
I used a different technique...
(...)
Conclusion: by stopping MDADM from grabbing ownership of the raid partition, I was able to mount it as its underlying ext3 just fine.
Thanks a lot, ljw1004. Stopping mdadm from using the FS was indeed the solution.
I had to specify the FS type to mount it though,
Code:
mount -t ext4 /dev/sdc3 /mnt/oldstuff -o ro
 
Old 01-10-2016, 09:43 PM   #19
skris88
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Rep: Reputation: Disabled
Trying to recover a RAID1 (mirror) NAS drive

I'm new on this forum and to Linux so please accept my apologies if I am posting in the wrong thread.

My NAS electronics died (after 7 years).

I was informed (by a unverified web site) that my Thecus NAS uses the XFS file system and that, being RAID1, I should be able to access the data simply off one of the two mirrored drives on my Linux Mint system.

I installed XFS support and tried to mount the drive directly but was unsuccessful. Below is what I just tried...

All assistance will be greatly appreciated.

Thanks,
skris88


Code:
dell-mint ~ # 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: 0x000c82a0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      976895      487424   83  Linux
/dev/sda2          976896    49805311    24414208   83  Linux
/dev/sda3        49807358   976771071   463481857    5  Extended
/dev/sda5        49807360    59570175     4881408   82  Linux swap / Solaris
/dev/sda6        59572224    79101951     9764864   83  Linux
/dev/sda7        79104000    98633727     9764864   83  Linux
/dev/sda8        98635776   976771071   439067648    b  W95 FAT32

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


Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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/sdb1               1  1953525167   976762583+  ee  GPT
Partition 1 does not start on a physical sector boundary.

Disk /dev/sdc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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: 0x00003411

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  1250263039   625130496    7  HPFS/NTFS/exFAT

Disk /dev/md10: 2047 MB, 2047868928 bytes
2 heads, 4 sectors/track, 499968 cylinders, total 3999744 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
Alignment offset: 3072 bytes
Disk identifier: 0x00000000

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

Disk /dev/md0: 998.2 GB, 998155157504 bytes
2 heads, 4 sectors/track, 243690224 cylinders, total 1949521792 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/md0 doesn't contain a valid partition table

Disk /dev/mapper/vg0-lv0: 948.1 GB, 948114030592 bytes
255 heads, 63 sectors/track, 115268 cylinders, total 1851785216 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/mapper/vg0-lv0 doesn't contain a valid partition table

dell-mint ~ # mdadm --assemble --scan
mdadm: /dev/md10 has been started with 1 drive (out of 2).
mdadm: /dev/md0 has been started with 1 drive (out of 2)

dell-mint ~ # mount /dev/md10 /media/nas-hdd
/dev/md10 looks like swapspace - not mounted
mount: you must specify the filesystem type

dell-mint ~ # mount /dev/md0 /media/nas-hdd
mount: unknown filesystem type 'LVM2_member'
 
  


Reply

Tags
mdadm, mount, raid1



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
recovering data from a software raid partition f14f21 Linux - Newbie 3 11-06-2008 06:29 AM
Recovering data on RAID 5 with semi-faulty hdd davidsaxton Linux - Hardware 2 09-16-2006 03:45 PM
LVM - recovering data after a disk failure. bogaurd Linux - Software 2 12-19-2005 11:34 AM
recovering data from hard disk planctus Linux - Hardware 4 10-10-2005 04:02 PM
recovering data from an old RAID -0 dominant Linux - Software 1 01-26-2005 02:42 AM

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

All times are GMT -5. The time now is 06:41 AM.

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