You will be using the right bay for swapping disks and will not turn power down.
0-System->Utilities->Services->StopAll
1-Disk->Utilities->Eject right bay. This will turn the new RAID into degraded state, but usable
2-Physically remove the right disk without turning power down -- this is hot-plugging
3-With the power still on insert the good disk from the old RAID in the right bay. It should be assembled in degraded mode and ready for use
4-Setup->Folders to examine the contents and copy the data from the old to new RAID. This is going to take a while, possibly hours. Your session will probably expire, keep waiting until there is no disk led activity for a while (this is an issue of the Folders copy/move operation when the operation take a very long time to accomplish)
5-Disk->Utilities->Eject right bay
5-Physically remove the right disk and re-insert the new one
6-Go to the RAID page and "Component Operations", "Partition", select the new disk partition, then "Component Operations", "Operation", "Add". A lengthily resync will start, but you can start using the RAID
Hi, Joao,I have read previous posts but my situation is a little bit different, so I post it here.My story:I have a RAID1 DNS previously using firmware 1.10. One drive died and I switched to ALT-F0.1RC3 and sent the failed drive to factory.Today the drive comes back, HOW can I add it back in?
DNS 323 , Hitachi 2* 2TB (one current in use, one just come back brand new).Currently the box has two orange leds.Also, my current old drive has ran 2+ years, I think the brand new drive may has less chance to fail again. So is there necessary for me to set the new drive as "primary" drive for the RAID1? If yes, then do I put the new drive in the left or right Bay of the box?
On Wednesday, May 22, 2013 5:04:07 PM UTC+1, chq...@gmail.com wrote:Hi, Joao,I have read previous posts but my situation is a little bit different, so I post it here.My story:I have a RAID1 DNS previously using firmware 1.10. One drive died and I switched to ALT-F0.1RC3 and sent the failed drive to factory.Today the drive comes back, HOW can I add it back in?Nobody likes to play with other's people data.Assuming that the new disk has the same or a greater capacity than the old one:0-Backup your data first1-System->Utilities->Services->StopAll2-Go to the Status page and write down in a paper the box bay where the old disk is. In your case it is in the left bay. Write it down!
3-Power off the box, insert the new empty disk in the available bay and power the box on,OR3-just plug-in the new empty disk in the available bay even with power of.
4-Go to the Status page and write down in the paper the device name of each disk (under the Dev. column of the Disks section)Currently in your case the old disk is on the left bay and the device name is "sda". But that *CAN* change after the new disk is inserted!*Probably* your new disk in the right bay will be called "sdb". *BUT* it might not! This is why your should write it down!
| Bay | Dev. | Model | Capacity | Power Status | Temp | Health |
|---|
| right |
| sda | Hitachi HDS5C3020ALA632 | 2000.4 GB | active or idle | 35°C/95°F | passed |
| left | sdb |
| Hitachi HDS5C3020ALA632 | 2000.4 GB | active or idle |
| 37°C/98.6°F | passed |
5-Go to Disk->Partitioner and in the "Select the disk you want to partition" section, select the row of the old disk, and under "Partition Table", select "CopyTo" and select the new disk name.Make sure that the device name that appear is really the device name of the new disk. This operation will make all data available in the CopyTo disk to become inaccessible.
Using MBR partitioning.
Every disk must have a swap partition as its first partition, 0.5GB is generally enough.
| Keep | Dev | Start sector | Lenght | Size (GB) | Type |
|---|---|---|---|---|---|
| sda1 | |||||
| sda2 | |||||
| sda3 | |||||
| sda4 | |||||
| Free: | |||||
6-After a few seconds the operation should succeed and the Disk Partitioner page redraws and you will have two disks with identical partition tables.Verify that by selecting the appropriate disk in the upper Partition column.Write down the device name of the partition marked as RAID(*) of the new disk (under the "Dev" column of the "Partition xxx disk, xxxGB, ..." sectionIf the new disk device name is "sdb" probably it will be "sdb2" or sdb3, but it *might* not!
(*) D-Link doesn't mark RAID partitions with the RAID type, instead it will be the larger partition marked as "linux"
7-Go to Disk->Raid and under the "RAID Maintenance" section, "Component Operations",-select the device name of the new disk partition in the Partition menu, "sdb2" in the *example* above.-select "add" in the Operation menu.
| Dev. | Capacity | Level | Components | Array | RAID Operations | Component Operations | ||
|---|---|---|---|---|---|---|---|---|
| md0 | 1861.0 GB | raid1 | sdb2 | |||||
| Dev. | Size | FS | Mnt | Label | Mount Options | FS Operations | New FS Operations | |
|---|---|---|---|---|---|---|---|---|
| md0 | 1.8TB | ext4 | * | |||||
| sda2 | 1861.0GB | none | ||||||
| sda4 | 0.5GB | none | ||||||
| sdb4 | 484.3MB | ext4 | * | |||||
No, you have not read the instructions. You have to create th RAID *before*
putting a filesystem on it.A RAID is like a partition, is a *device*; devices
need a filesystem on them to handle your data.
Steps:
1-create partitions, first must be of type swap, will not contail data.
2-create raid
3-create filesystem
in post: [Alt-F] Re: Adding 2nd Drive to DNS-323
sfdisk -c /dev/sda 2 da
Dev. Capacity Level Components Array RAID Operations Component Operations md0 1861.0 GB raid1 sdb2 the "Operation" droplist only has one choice: "sdb2", but I think I should select "sda2", right???
I have saved the settings and reboot the box, nothing changes,Please help me out.8-The RAID should now automatically start rebuilding and its progress can be monitored in the Status Page.It might take several hours to finish, as all data from the old disk will be copied to the new disk, but the data will be available.In short, you will copy the old disk partition table to the new disk and add the new disk RAID partition to the RAID array. That's it!Amazing how that occupies about 20 lines of text!Any issue?
OK, only partitions marked as type RAID will appear there, you have to change the second partition type to type RAID.But D-Link has partitioned the drives out of order (notice that in the Disk Partitioner the sda2 start sector appears after the sda4 start sector), and Alt-F only supports "properly" made partitions.You have two options. Choose the one you feel more comfortable with:-ssh or telnet the box, login as the 'root' user, same password as the webUI, and type the following command (assuming that "sda" is the new disk!)Now "sda2" will appear as one of the component partitions, and you can proceed.sfdisk -c /dev/sda 2 daOR-In the Disk Partitioner, repartition the "sda" disk (assuming that it is the new disk) by unchecking all the "Keep" checkboxes and filling inDev Size Typesda1 0.543 swapsda2 1998.235 RAIDsda3 0.524 linuxsda4 0 emptyand hit the Partition button. Make sure you are partitioning the correct (new) disk!Now "sda2" will appear as one of the component partitions, and you can proceed.
This is perfect, I have used the second method, since I am not familiar with Telnet; have no idea what is ssh..... sorry,And now I have maintained the RAID1. the status page said it needs 220mins to finish.feel so goooooooooooooood to see the two orange leds blinking there!!Two minor things still need your suggestion:1. what's "sda4" and "sdb4" for ?
Can they be delete/merge to the large partition somehow?
Maybe the best way to use is set them as a JBOD ? Also there is still 1.1G space not located on each drive, is that been left for purpose?
2. I read some articles said that "RAID 1 is still safe in case one drive fails, there is chance that the other drive will copy the failed sectors and mess the data." what's your point? is that true? If yes, how can I avoid that?
Your instruction is perfect, I will give it a 5 star. :)You response is really quick too.
Thanks, I will try to write the wiki as soon as possible.Joao
Hi, Joao,One more related question to you: In case I have single hard drive (standard) from firmware 1.10 rather than a degraded RAID1, HOW can I add the new disk and create a RAID1 without losing the data?
Here is my planned step: load the new drive, copy the partition table from the old disk, create a RAID by select two partitions from the two drives separately?Also, you mentioned that many alt-f and ffp packages can communicate with their own ports , such 9091 for transmission, how can I view/set these ports?