Esata add to built-in volume (raid)

Got a feature request? Great! Post your ideas here!

Moderator: Lillian.W@AST

Post Reply
L4rs
Posts: 15
youtube meble na wymiar Warszawa
Joined: Sat Feb 15, 2014 10:33 am

Esata add to built-in volume (raid)

Post by L4rs »

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
MikeG.6.5
Posts: 917
Joined: Fri May 15, 2015 1:56 am

Re: Esata add to built-in volume (raid)

Post by MikeG.6.5 »

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...)
L4rs
Posts: 15
Joined: Sat Feb 15, 2014 10:33 am

Re: Esata add to built-in volume (raid)

Post by L4rs »

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?
L4rs
Posts: 15
Joined: Sat Feb 15, 2014 10:33 am

Re: Esata add to built-in volume (raid)

Post by L4rs »

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.
L4rs
Posts: 15
Joined: Sat Feb 15, 2014 10:33 am

Re: Esata add to built-in volume (raid)

Post by L4rs »

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 :)
crazynas
Posts: 222
Joined: Mon Feb 16, 2015 10:34 pm

Re: Esata add to built-in volume (raid)

Post by crazynas »

You can do shell script by yourselt when NAS boot.
MikeG.6.5
Posts: 917
Joined: Fri May 15, 2015 1:56 am

Re: Esata add to built-in volume (raid)

Post by MikeG.6.5 »

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 :)
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.
crazynas wrote:You can do shell script by yourselt when NAS boot.
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.
Post Reply

Return to “Feature Requests”