LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-11-2019, 03:38 AM   #1
CrowbarHero
LQ Newbie
 
Registered: Mar 2018
Location: Wales, UK
Distribution: Debian
Posts: 29

Rep: Reputation: Disabled
Question Mount hardware raid component - ddf_raid_member


I have removed a small raid controller from my debian fileserver (I was getting IO errors which took the whole array offline - I'll put a separate post up on the state of the disks).

It had a pair of 2TB disks in a raid 1 configuration.

I'd like to mount these disks independently.

This is the response I get from attempting to mount the disk:

Code:
$ sudo mount /dev/sda /media/disk1
mount: unknown filesystem type 'ddf_raid_member'
This is the response to blkid

Code:
/dev/sda: UUID="MARVELL M-+^Q#M-^QM-+^Q#M-^Q{M-mM-*5RM-mM-*5" TYPE="ddf_raid_member"
/dev/sdb: UUID="MARVELL M-+^Q#M-^QM-+^Q#M-^QM-^UM-^\4{lM-^\4{" TYPE="ddf_raid_member"
/dev/sdc1: UUID="ee639136-d95e-495a-91e4-129cc9acdd03" TYPE="ext4" PARTUUID="74c8fe4c-01"
/dev/sdc5: UUID="9be1b274-1780-4d8a-8007-96924c8b59d2" TYPE="swap" PARTUUID="74c8fe4c-05"

SDA and SDB are the drives in question, they're on the 6gbps ports now.

How can I mount these disks as individual non-raid devices?

I do have a backup, but I'd prefer not to have to resort to that, as the whole point of raid 1 should be for data redundancy.

Long term I'm thinking RAID 1 is a bit of a hassle, especially with hardware as it's another link in the chain. So I'll probably revert to drive and backup format.
 
Old 06-11-2019, 08:27 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
ddf is fake RAID which uses software versus a real hardware RAID controller. You should be able to assemble and mount the RAID using mdadm if not already recognized by the operating system. As root run the following command and post the output.

mdadm --query --detail /dev/md*
 
1 members found this post helpful.
Old 06-11-2019, 09:05 AM   #3
CrowbarHero
LQ Newbie
 
Registered: Mar 2018
Location: Wales, UK
Distribution: Debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
ddf is fake RAID which uses software versus a real hardware RAID controller. You should be able to assemble and mount the RAID using mdadm if not already recognized by the operating system. As root run the following command and post the output.

mdadm --query --detail /dev/md*
Thanks - will do when I get home
 
Old 06-11-2019, 12:17 PM   #4
CrowbarHero
LQ Newbie
 
Registered: Mar 2018
Location: Wales, UK
Distribution: Debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
ddf is fake RAID which uses software versus a real hardware RAID controller. You should be able to assemble and mount the RAID using mdadm if not already recognized by the operating system. As root run the following command and post the output.

mdadm --query --detail /dev/md*
the command as written above yields a no such device type response:

Code:
mdadm: cannot open /dev/md*: No such file or directory
but paraphrasing into my context gets the following:

Code:
$ sudo mdadm --query --detail /dev/sd*
mdadm: /dev/sda does not appear to be an md device
mdadm: /dev/sdb does not appear to be an md device
mdadm: /dev/sdc does not appear to be an md device
mdadm: /dev/sdc1 does not appear to be an md device
mdadm: /dev/sdc2 does not appear to be an md device
mdadm: /dev/sdc5 does not appear to be an md device
 
Old 06-11-2019, 03:31 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
What version of debian is running on the server?

How was the RAID mounted in the server's /etc/fstab?
 
Old 06-11-2019, 04:11 PM   #6
CrowbarHero
LQ Newbie
 
Registered: Mar 2018
Location: Wales, UK
Distribution: Debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
What version of debian is running on the server?
Debian 9

Quote:
How was the RAID mounted in the server's /etc/fstab?
Not sure to be honest. The previous installation was wiped when I rebuilt the box -probably a foolish mistake on my part now.
 
Old 06-11-2019, 04:28 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
A recent version of mdadm should be able to pick up the fake raid but I do not know if Marvell is supported. Depending on what version was previously installed it might of been using dmraid instead of mdadm. What happens when you run this command.

mdadm --examine /dev/sd[ab]

https://raid.wiki.kernel.org/index.php/RAID_Recovery
 
Old 06-11-2019, 04:38 PM   #8
CrowbarHero
LQ Newbie
 
Registered: Mar 2018
Location: Wales, UK
Distribution: Debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
Mdadm was installed fresh yesterday, so is as recent as they get.

Previous attempts to examine using mdadm said there were no superblocks or something. I didn't make a note at the time.

Out of frustration I've just reinstalled the RAID card (I used different cables, in case they were the cause of the unreliability). I've rebooted and I'm now seeing the array - albeit as 2 devices:

Code:
$ sudo blkid
/dev/sda1: UUID="ee639136-d95e-495a-91e4-129cc9acdd03" TYPE="ext4" PARTUUID="74c8fe4c-01"
/dev/sda5: UUID="9be1b274-1780-4d8a-8007-96924c8b59d2" TYPE="swap" PARTUUID="74c8fe4c-05"
/dev/sdb1: LABEL="array1" UUID="20b36795-8b59-44ed-bcaf-3996b2c47bbc" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdc1: LABEL="array1" UUID="20b36795-8b59-44ed-bcaf-3996b2c47bbc" TYPE="ext3"
 
Old 06-11-2019, 06:38 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
OP posted in another thread card is 2-Port-PCI-Express-SATA-6-Gbps-Controller-Card~PEXSAT32. Offers Linux support but note the limits - there started being significant changes to APIs around 4.11 that I noticed stymied Realtek network drivers. Changes keep occurring at almost every release that require manual patching - I wonder if this is related.
 
Old 06-11-2019, 06:42 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
I totally missed that thread...
 
Old 06-11-2019, 06:44 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Also, RAID1 is not just one disk being copied to another - as the message mentions, there is also meta-data that defines how/where the data is located, compression/encryption if any, that sort of thing. And for a proprietary card, that format may not be public. Hence the general (Linux) exhortation to use software RAID for resiliency.
 
1 members found this post helpful.
Old 06-11-2019, 07:04 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
I understand...
 
Old 06-11-2019, 11:50 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Those comments were directed to the OP.
Quote:
Originally Posted by CrowbarHero View Post
How can I mount these disks as individual non-raid devices?
 
Old 06-20-2019, 03:53 AM   #14
CrowbarHero
LQ Newbie
 
Registered: Mar 2018
Location: Wales, UK
Distribution: Debian
Posts: 29

Original Poster
Rep: Reputation: Disabled
Hi all, I appreciate your thoughts on this thread, however due to time constraints, and the need to access the data promptly, I re-installed the disk array in its RAID1 configuration, to return things to operational capacity. All the data appears intact and available. I'm coming to the realization that RAID1 might not be the best solution for accessibility after failure, and I'm actively looking into better offline backups such as fast removable storage. (it's a tossup between a Caddy for a hot swappable disk, or a USB drive & enclosure)

This is a learning experience for me, I'll get there in the end. I'm also currently engaged in a dialogue with the Technical team at Star Tech, they seem enthusiastic to help, or at least identify the cause of my problems. This feels positive.
 
Old 06-20-2019, 04:53 AM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,137

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
With hardware RAID, you have to basically use a hardware card - and usually from the same manufacturer. Hopefully they keep supporting it. The deficiency is not in the RAID1 specification itself, but the fact you used a hardware RAID - which does offer the opportunity for performance benefits, so is not all bad as a choice.
However, especially in a Linux environment, may suffer from recoverability issues - because of the proprietary entanglements.
 
1 members found this post helpful.
  


Reply

Tags
raid



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When growing raid: "mdadm: component size must be larger than chunk size." - but it is... Paul.C Linux - Server 7 01-18-2019 12:58 AM
Hardware raid vs software raid, is hardware raid portable? MikeyCarter Linux - Hardware 2 01-06-2016 03:30 PM
how to access auto raid hard drive component mohdsuboor23 Linux - Server 2 12-23-2010 05:58 PM
What hardware component determines refresh rate in laptop? General Linux - Laptop and Netbook 5 03-07-2007 01:56 PM
How to add software RAID component DataSheet Linux - General 1 04-29-2006 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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