hi,
I am using my older as608t in raid 6 mode, with 8 disk each 2tb.
- I wish to:
- add another disk via esata to the built-in raid volume
- smart & bad block scan for external esata devices
- Maybe a frontend for that (using esata as internal)
I do have the skills to edit the conf or configure an mdadm raid, but where are the files to do that?
It would help me saving a lot of time if someone could explain me...
thxs,
L4rs
Esata add to built-in volume (raid)
-
- Posts: 15
- youtube meble na wymiar Warszawa
- Joined: Sat Feb 15, 2014 10:33 am
-
- Posts: 917
- Joined: Fri May 15, 2015 1:56 am
Re: Esata add to built-in volume (raid)
At this time, all external drives are treated only as externals. They can't be included in any internal volumes, in any way. As far as I know, this is not just an Asustor limitation, but I could be wrong. (Never tried mounting externals on my old Synology, and no longer have that device anyway...)
-
- Posts: 15
- Joined: Sat Feb 15, 2014 10:33 am
Re: Esata add to built-in volume (raid)
You can simply add two external drives to an mdadm raid volume,
But how to add them to the internal volume?
I think asustor itself does mdadm? So I just need to know where to configure?
But how to add them to the internal volume?
I think asustor itself does mdadm? So I just need to know where to configure?
-
- Posts: 15
- Joined: Sat Feb 15, 2014 10:33 am
Re: Esata add to built-in volume (raid)
okai I will try this with 2 external esata drives and see what happens.
-mdadm --create /dev/md2 --auto md --level=1 --raid-devices=2 /dev/sdX /dev/sdX
I think the kernel should automount it on boot:
-/sbin/raidautorun
-/usr/sbin/volmand
-/usr/sbin/stormand
But I cant find any config files, so dunno if theres some more magic.
The data stored on /dev/md1 is too important to just edit the information stored at the superblok and at least to do some tests.
If someone is interested in, that's how It should work (not tested)
-write the partiotion table [cfdisk (fdisk) /dev/sdX]
-and add the disk [mdadm /dev/md1 --add /dev/sdX]
edit: asustor uses superblock metadata 1.2. so there is no kernel autodetect/mount on boot.
-mdadm --create /dev/md2 --auto md --level=1 --raid-devices=2 /dev/sdX /dev/sdX
I think the kernel should automount it on boot:
-/sbin/raidautorun
-/usr/sbin/volmand
-/usr/sbin/stormand
But I cant find any config files, so dunno if theres some more magic.
The data stored on /dev/md1 is too important to just edit the information stored at the superblok and at least to do some tests.
If someone is interested in, that's how It should work (not tested)
-write the partiotion table [cfdisk (fdisk) /dev/sdX]
-and add the disk [mdadm /dev/md1 --add /dev/sdX]
edit: asustor uses superblock metadata 1.2. so there is no kernel autodetect/mount on boot.
-
- Posts: 15
- Joined: Sat Feb 15, 2014 10:33 am
Re: Esata add to built-in volume (raid)
FYI:
creating an e-sata raid (mdadm --create /dev/md0 --auto md --level=1 --raid-devices=2 /dev/sdX1 /dev/sdX1) works as smooth.
Speed is around 60mb/s.
But its not mounted/started automatically. For me the easiest way is to use a script to do that on each boot. (mdadm --assemble /dev/mdX /dev/sdx1 /dev/sdx1; mount /dev/mdX /volume/folder)
Only the smart check is missing, I will do that the next days
creating an e-sata raid (mdadm --create /dev/md0 --auto md --level=1 --raid-devices=2 /dev/sdX1 /dev/sdX1) works as smooth.
Speed is around 60mb/s.
But its not mounted/started automatically. For me the easiest way is to use a script to do that on each boot. (mdadm --assemble /dev/mdX /dev/sdx1 /dev/sdx1; mount /dev/mdX /volume/folder)
Only the smart check is missing, I will do that the next days
-
- Posts: 222
- Joined: Mon Feb 16, 2015 10:34 pm
Re: Esata add to built-in volume (raid)
You can do shell script by yourselt when NAS boot.
-
- Posts: 917
- Joined: Fri May 15, 2015 1:56 am
Re: Esata add to built-in volume (raid)
If you set up the script with the instructions found here: viewtopic.php?f=49&t=1681 you should be able to do this automatically. The advantage to that is, if the NAS goes to sleep or you reboot it, you don't have to manually re-run it from within Putty or other SSH connection.L4rs wrote:FYI:
creating an e-sata raid (mdadm --create /dev/md0 --auto md --level=1 --raid-devices=2 /dev/sdX1 /dev/sdX1) works as smooth.
Speed is around 60mb/s.
But its not mounted/started automatically. For me the easiest way is to use a script to do that on each boot. (mdadm --assemble /dev/mdX /dev/sdx1 /dev/sdx1; mount /dev/mdX /volume/folder)
Only the smart check is missing, I will do that the next days
Why manually do something that can be automated? These things are computers, capable of doing automated tasks to perfection. Test the script out, set it up following the instructions in the link I provided above, and it's done. No need to run it manually from that point on.crazynas wrote:You can do shell script by yourselt when NAS boot.