Ask: How To Mount Nas200 XFS RAID-1 Drive In Linux

Discussion in 'Cisco/Linksys Network Storage Devices' started by Gripi, Apr 8, 2008.

  1. Gripi

    Gripi Addicted to LI Member

    hello.. first my english is not very good, what i would like to ask is..

    how to mount the drive in nas200 that already using raid-1 (xfs file system) into linux system? what should i have or do? because my nas200 is broken.

  2. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    The NAS200 uses mdadm to manage RAID filesystems. I think it should be possible to use mdadm on a different system to Assemble (that's Assemble, not Create!) a mirror array with just one device and start it to get the data off the drive. Only partition 1 has data on it and is formatted in XFS; partition 2 contains the NAS200 configuration data and partition 3 is a swap partition.

    What's wrong with your NAS200?

  3. Gripi

    Gripi Addicted to LI Member

    my nas200 is fine actually, because i just bought it.

    i just wondering what should i do if my nas200 broken, how to mount the drive / read the data, except buy a new one (preparing my self).

    no other simple way except using mdadm? or is it possible to make raid-1 not to use XFS? may be use another file system?
  4. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    You're touching an interesting problem here: "What if I trust my data to an integrated device and that device stops working?". Good question!

    There are several things that can happen to your data while it's on the NAS200. Of course we all hope that none of this will happen, but if your data is important enough, you will want to have some kind of disaster plan.

    If one of the hard disks stops working, your data will still be on the other hard disk if you run in RAID 1 mode.

    If something happens to the electronics, you can buy a new NAS200 or connect the harddisk to a PC that supports mdadm and XFS to get to your data.

    But what if there's a fire and both hard disks are lost? What if someone breaks into your house or office and steals the NAS200? What if you make a mistake and delete a file by accident? Nothing except a good backup strategy will save you in those cases (and other ones).

    Personally, I think RAID-1 is too much of a price to pay to keep data safe: you lose half the capacity of your storage, you lose at least some of its speed, and it doesn't guard against the most common problem which is human error. You still need a backup.

    I'm currently looking into online backup options (with my firmware, it's easy to run rsync in a cron job on the NAS200 -- I'm not doing it yet but I'm definitely planning on doing so) and there are many services available that let you make secure backups over the Internet (just google for Online Backup or check out With some of them, you can get a free account with limited space to try it out. For a little bit of money you can get a better service with more capacity. Some of them have been around for a long time and charge an arm and a leg, while others charge a lot less. Some of them require you to install software that they make available for Windows only, others also give you options from a Linux system.

    I would say, shop around and choose the one you like.

  5. Gripi

    Gripi Addicted to LI Member

    could you tell me what OS support mdadm or XFS file system? at least the system will automaticly mount the drive without "special skill".

    i agree with you about the fire stuff or what if the harddrive get stolen, the problem with online storage are, the data from my office is to big to upload it into online storage (around 100gb), because the ISP is very expensive in my country, we must pay $1500 / month just to get a dedicated 512kb speed :thumbdown:, and i'm pretty sure that i need about couple days just to upload it, and i believe it will take much time just to synchronize it too.
  6. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Any recent Linux install should support mdadm and XFS; if it doesn't do this "out of the box", you will be able to install support for them.

    I believe the company I work for pays $700 per month for a connection with the same speeds as what I pay $60 for at home. Also, because the Internet is important to our business, I don't think my boss would like it if our connection is used to all day to backup data that we generate locally.

    Of course sending 100GB over a 512mbps connection will take a long time, but once the initial backup is done, you only have to send the files that were changed since the previous backup. But that could still be a lot!

    If you want to backup data from the NAS200 to a harddisk, the cheapest solution is probably to buy one of those USB to IDE/SATA adapters (they are about $25 here) and a few harddisks (e.g. one for each day of the week or one per week). You can either connect the harddisk to a computer or to the back of the NAS200. With my firmware, it should be pretty easy to set up a cron job that automatically backs up the data from the NAS200 to an attached USB drive.

  7. Gripi

    Gripi Addicted to LI Member

    i already try to plug the drive into ubuntu 7.10 (32 or 64bit), and opensuse v10.3, still cannot read the data, do i need to mount it first? or automaticly mounted in the system?

    ok.. i will try to use ur firmware (thanks alot), and before i buy the USB to SATA Adapter, may i know which one is faster, backup from nas200 into my local drive (using network 100mbps), or from nas200 to usb?

    and could you recommend to me a brand for the adapter?

  8. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    You will have to use mdadm to assemble a RAID with a missing drive, then you will have to mount the raid as filesystem. I'm sorry, I can't give you a full step by step guide here because I don't use RAID myself.

    No matter how you backup the drives, I'm afraid the 4MB/sec which is the NAS200's maximum harddisk access speed is the bottleneck so it won't really matter.

    That is totally non-critical. All of them do the same thing at pretty much the same (maximum) speed so just choose one that has the features you like. Most likely, electronics stores only stock one brand and type anyway.

  9. Gripi

    Gripi Addicted to LI Member

    thanks for the information :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice