Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
I have 2 500GB Harddisks installed and the following partitioning:
Volume 1: 300GB RAID-1 (production data)
Volume 2: 400GB JBOD (non important data, like downloads or backups)
Now, one of the harddrives broke and was replaced by a new one. Volume 1 was rebuilt without problems. Although, I expected to loose all data from Volume 2, I was surprised that Volume 2 disappeared completely and I had no chance to redefine it yet.
So, I have 1TB installed, but I am only able to use 2x300GB of it :-(
How can I recreate/define Volume 2 ?
When I telnet to the NAS, I see the partition that used to be part of Volume 2 still in the partition table:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 66 530113+ 82 Linux swap
/dev/sda2 131 42687 341839102+ 83 Linux
/dev/sda3 42688 60801 145500705 83 Linux
/dev/sda4 67 130 514080 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 66 530113+ 82 Linux swap
/dev/sdb2 93 42649 341839102+ 83 Linux
/dev/sdb3 42650 60801 145805940 83 Linux
/dev/sdb4 67 92 208845 83 Linux
checking what is mounted gives me the following output:
/ # mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type squashfs (ro)
/dev/md0 on /mnt/HD_a2 type ext2 (rw)
/dev/sda4 on /mnt/HD_a4 type ext2 (rw)
/dev/sdb4 on /mnt/HD_b4 type ext2 (rw)
none on /proc/bus/usb type usbfs (rw)
devpts on /dev/pts type devpts (rw)
So, Volume 1 is mouted as /dev/md0 on /mnt/HD_a2, but the JBOD that should cosist of /dev/sda3 and /dev/sdb3 is not available and not mounted.
any help appreciated,
Thanks,
bye
Marcus.
Last edited by eMarcus (2009-03-08 18:31:25)
Offline
What you're describing is normal, and as far as I know, the only way to recover the missing space is to backup your data, reformat the drives and restore your data.
Offline
fordem is correct, it is gone. The only way for you to not have to go through the reformat process is to modify your config files on the hard drives and in flash so the DNS will see the second part. The files are raidtab and raidtab2web. In the files, there are provisions for the information for up to 2 mount points. The files are located in the 4th partition on each drive and in 2 places in flash (mtdblock 1 and 2). Take a look at the files, but be cautioned that if you modify these incorrectly, the DNS will fail to pick up and mount the drives properly.
On a good note, there is the possibility that the config files on the non-failed drive are still original with the correct setup. If this is the case you can copy them to the other drive and to flash and that should work. You need to look at them first. Also, do not mess with or copy the magic number file; those are specific to their location.
Offline
Would there not be the need to create the necessary partition structure on the replacement drive also?
Offline
Hi, and thanks for your answers. I am somehow disappointed, that I loose the JBOD disks when one disk is replaced, however, I am not giving up that fast :-)
The partitions for the JBOD are all there: /dev/sda3 and /dev/sdb3
The files /mnt/HD_a4/.systemfile/raidtab and /mnt/HD_b4/.systemfile/raidtab look similar:
raiddev /dev/md0
raid-level raid1
nr-raid-disks 2
chunk-size 64
persistent-superblock 1
device /dev/sdb2
raid-disk 0
device /dev/sda2
raid-disk 1
raiddev /dev/md1
raid-level linear
nr-raid-disks 2
chunk-size 64
persistent-superblock 1
device /dev/sdb3
raid-disk 0
device /dev/sda3
raid-disk 1
Version 1.3
which looks ok.
/mnt/HD_a4/.systemfile/raidtab2web and /mnt/HD_b4/.systemfile/raidtab2web look identical, too, but they are missing an entry for md1:
raiddev /dev/md0
raid-level raid1
nr-raid-disks 1
chunk-size 32
persistent-superblock 1
device /dev/sda2
raid-disk 0
device /dev/sdb2
raid-disk 1
Status Start
raid-masterdisk /dev/sda2
FirstStart 0
FormatwebFlag 1
SatamountFlag 1
SatamountFlag1 0
raidsize 326
filesystem EXT2
parti3 0
I created a filesystem now on /dev/sdb3 as this was missing. After that the webinterface asks me to format the complete drivers when I log in as admin (I can skip that and the RAID on Volume_1 is still up and running with all data on it).
So, I end up with two questions:
How can I get Volume_2 working? Do I need to add an entry for md1 in raidtab2web?
How can I convice the webinterface that all my filesystems are formatted and do not need any further formatting?
Thanks,
bye
Marcus.
Offline
Hi,
OK, I found the solution - here is the Howto:
1.) Check that the partitions for Volume_2 are created on both disks - should be /dev/sda3 and /dev/sdb3 (otherwise create them with fdisk)
2.) Check that the file /mnt/HD_a4/.systemfile/raidtab does contain an entry for Volume_2
3.) Check that the file /mnt/HD_b4/.systemfile/raidtab does contain an entry for Volume_2 eventually copy the correct file to the other disk
4.) Create filesystems on both paritions (mke3fs /dev/sda3) - don't know if this is necessary, maybe this step can be skipped
5.) Create Volume2 manually: mdadm -c /dev/md1 -l linear --raid-devices=2 /dev/sd[ab]3
6.) Create a filesystem on Volume2: mke2fs /dev/md1
7.) reboot
Hope that helps anyone in the same situation!
bye
Marcus.
Last edited by eMarcus (2009-03-10 16:46:55)
Offline
Any way you could provide a little more detail for a noob?
Offline