Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
All the lights are red, however, when I modprobe the aacraid module, I get thsi messages in dmesg tsaying there are read/write errors.
I'm thinking that it could be possible to get the binary data from the separate disks (in case they are all OK) and use a application that could be simulate the array in order to get the data from it. Is that possible?
If, somehow, the software raid algorithms match the hardware raid algorithms, then it should be possible. However, this is unlikely: unfortunately, you'll probably need the real deal.
By the way..... once the IT personnel allow me to make the images of the HD that make the array, I'll post you to tell you about my journey. I will try with a software raid.
The guys of IT decided to give some tries yesterday with another guy they looked for. They took out one of the disks from the array. The things they tried, didn't work.
Now, I was able to get the re-initialized disk taken out from the array... and just as one test, I got it on another machine to see if I could get the binary output from the disk. I wasn't.
Here's the output from knoppix once I modprobe the module of the controller:
Code:
root@ttyp1[knoppix]# modprobe megaraid
root@ttyp1[knoppix]# dmesg
megaraid: v1.18k (Release Date: Thu Aug 28 10:05:11 EDT 2003)
PCI: Found IRQ 9 for device 04:03.1
IRQ routing conflict for 04:03.1, have irq 11, want irq 9
megaraid: found 0x8086:0x1960:idx 0:bus 4:slot 3:func 1
scsi0 : Found a MegaRAID controller at 0xf8900000, IRQ: 11
megaraid: [E :B ] detected 2 logical drives
megaraid: channel[1] is raid.
megaraid: channel[2] is raid.
scsi0 : LSI Logic MegaRAID E 254 commands 15 targs 5 chans 7 luns
scsi0: scanning virtual channel 0 for logical drives.
Vendor: MegaRAID Model: LD0 RAID1 8677R Rev: E
Type: Direct-Access ANSI SCSI revision: 02
Vendor: MegaRAID Model: LD1 RAID0 17365R Rev: E
Type: Direct-Access ANSI SCSI revision: 02
scsi0: scanning physical channel 0 for devices.
Vendor: HP Model: SAFTE; U160/M BP Rev: 1023
Type: Processor ANSI SCSI revision: 02
scsi0: scanning physical channel 1 for devices.
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0
SCSI device sda: 17770496 512-byte hdwr sectors (9098 MB)
sda: sda1
SCSI device sdb: 35563520 512-byte hdwr sectors (18209 MB)
sdb:SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 0
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 2
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 4
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 6
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 0
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 2
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 4
SCSI disk error : host 0 channel 0 id 1 lun 0 return code = 25040001
I/O error: dev 08:10, sector 6
unable to read partition table
Now... I see that it recognizes the local array of the computer... no problem. But it has problems with the disk from the array.
I can't cat /dev/sdb (so to make one image). Do you know how I can make it work? I don't care about the "logical" data. I just want to get the raw data from the disk (by the way.... I don't think the disk is dead at all).
Code:
root@ttyp1[knoppix]# cat /dev/sdb
cat: /dev/sdb: Error de entrada/salida
Remember I told you there were 5 disks in the array? Welll.... one of the disks was removed from the array while making tests on it. The tricks didn't work, so I was finally given the chance to get the images of the HD in order to experiment with it... and I soon found myself booting into knoppix.
We turned off the storage and moved the 4 remaining disks into a computer to handle them locally, get the images and take them back so they can keep trying to get the data.
I left the computer at the office copying each the the five disks to another computer so we can keep them untouched.
I took a look at some of the binary information on the disks and there "seems" to be information to rescue.
Now.... let's think about tomorrow:
I'll have 4 files: disk1.dat disk2.dat disk3.dat and disk4.dat.
Let's think about the worst case scenario: I don't know which of the five disks was removed (i'll ask the guys tomorrow anyway).
What will I have to write in raidtab so mkraid notices that one of the images is missing? I can make a number of tries..... no problem with that.
Use losetup to create four loop devices. You will need to move to a certain point in the file by specifying "-o" because the partition starts somewhere in the file. Partitions do not start at the beginning of any medium. The beginning of the medium contains mbr.
I do not think that RAID 5 algorithms are standard because moving the array from one computer to another computer using a different controller will not work. All controller brands state this in the manuals.
BTW, I have never read using disk images to be used as RAID.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.