Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I am using e2fsck from Fonz's link and I am not sure what option I should use to check my RAID 0 DNS 323
the instructions show the following example
mdadm -A /dev/md0 /dev/sd[ab]2
What should I use? I don't want to mess anything up
I have 2 Western Digital Green Drives in a RAID 0 but I think I have some bad blocks because when I tried to delete a few files I got an I/O cannot stat error
Offline
You can, probably, find the answer in the mdadm manual page: http://linux.die.net/man/8/mdadm
Offline
I checked that before posting but it didn't mention how to determine the device letter that applies
I assume it would be this
mdadm -A /dev/md0 /dev/sda2
because it's the first SATA disk and second partition but I am not sure. Fonz's example below from his e2fsck documentation
mdadm -A /dev/md0 /dev/sd[ab]2
Here is how I am looking at the command line
/dev/sd <== means SATA drive
/dev/sda <== means first drive (my RAID 0)
/dev/sda2 <== means second partition because first partition is /boot?
Offline
I have 2 Western Digital Green Drives in a RAID 0
because it's the first SATA disk and second partition but I am not sure.
Do you want to build an array of one single disk of a two disk array?
Offline
ithrowpicks wrote:
/dev/sda2 <== means second partition because first partition is /boot?
/dev/sda1 is a swap partition. I use standard mode, but I imagine it's the same.
Offline
OK I think all we need to verify is whether I should use 'A' or 'B' in the command line. I was thinking the first partition was boot but swap sounds like the better answer
So do you guys think I should use this?
mdadm -A /dev/md0 /dev/sda2
Mijzelf
Not trying to rebuild anything.. just trying to fix some bad blocks that is affecting a couple of files (I can't delete them)
I want to keep the same setup of both drives in RAID 0 so I can have 1.5TB storage
Offline
It makes no sense to run mdadm -A on a single disk of a raid0 array. The array cannot be assembled from only one disk.
Offline
Mijzelf
So what do you suggest is the proper solution?
Should I run two commands?
mdadm -A /dev/md0 /dev/sda2
mdadm -A /dev/md0 /dev/sdb2
Offline
If you want to check the filesystem, you'll have to assemble the array, by specifying both disks:
mdadm -A /dev/md0 /dev/sda2 /dev/sdb2
or
mdadm -A /dev/md0 /dev/sd[ab]2
After that you can run e2fsck on /dev/md0
Offline
Yes... that worked
The original example Fonz provided does not need any alteration. I misunderstood the command line option
Offline
Do I understand correctly - for RAID1 I should perform the same command?
mdadm-A /dev/md0 /dev/sda2 /dev/sdb2 ?
Now, command cat /proc/mdstat say:
/bin $ cat /proc/mdstat
Personalities : [linear] [raid0] [raid1]
md0 : active raid1 sda2[0] sdb2[1]
486544512 blocks [2/2] [UU]
Thank you very much!
Offline
@t332: I don't understand the question. Yes, for raid1 the same command is used, but your /proc/mdstat tells it's already assembled. So reapplying the command won't do anything, or raise an error.
(BTW, in case of raid1 you can also build the array with only one disk. That's the power of mirroring.
mdadm -A /dev/md0 /dev/sda2 --run
When you do that with a healthy array, however, it's good practice to mount /dev/md0 read only. You don't want to write one half of a mirrored pair).
Offline
I tried to be brief, because my english is bad.
As a result, it is not clear explained.
First command - it was on working DNS-323 controlled by fun_plug.
And I wanted to learn how to properly mount RAID-1 after the file reload.sh
Thank you very much, now I understand this.
Offline