Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: New server build, Disk and UPS advice.

  1. #1
    Join Date
    Nov 2005
    Location
    Tumba, Sweden
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question New server build, Disk and UPS advice.

    Hi all.

    Long time since I been here.
    Reason is probably that server has functioned well.
    That is until a few weeks ago, when my old P4 10.04 LTS server died.
    I suspect a recent power outage is to blame where the power came on and off several times, unfortunately this was in my absence.

    Anyway a few days after, the server shut down by itself, and will not come on again.
    Well I had for some time planned an upgrade anyway, so instead of trying to revive it, I decided to build a new one.

    I'm hoping I can save the some of the content of the disks though, not that any critical is there, but it would be a big hassle to recreate it.

    Current setup was a 5 mixed IDE/SATA disk setup, where 2 of them was in a software raid 0, (Yea I know, not safe).

    Anyway, my new server that is partially built, and partially in the post, will have a whole lot more space and power.

    I need some advice on disk setup, and also some thoughts on UPS.

    MB: Asus P8H77I Mini ITX.
    CPU: Intel Core i7 3770
    MEM: 16GB
    System disk: Samsung 128GB SSD
    Data Disks: 5x3TB WD RED
    PSU: 460W

    The server will do a few different tasks, Backup for other computers in the house, HTPC back-end, Virtualization, Video Surveillance server, Low traffic Web server. Well you get the idea, big mix.

    So I need a good disk setup.
    I was first thinking about Raid-5, but read that with very big disks this is not a good idea due to re-sync time.
    Then I was thinking about going ZFS, but sounds complicated.
    Now i'm wondering if I should just go a two disk Raid 1, and a three disk Raid 0.
    Or two disk Raid 1, with a spare and a two disk Raid 0
    To balance reliability and performance.
    Unfortunately I was not able to order them from different batch, so 4 disks are from the same date, and the fifth is a week newer than the rest.
    I will probably try later to get some more disks, and replace them in the server so I get a better spread.
    One thing that is required is data disks should be encrypted.

    Any advice?


    My second question is on UPS.
    I have little experience in this area, and would like some advice on what to get.
    I was thinking to get a UPS rated at about 500W and 8-10 minutes at full load.
    My calculations are that the server will use about 100W on Idle, and up to perhaps 300W on medium load, these are pure guestimates.

    My question is:
    Is it possible to detect that the server is on battery instead of mains, and then execute some scipts, to turn of non critical services, and basically go to low power mode.
    For example, spin down disks, switch of cpu intensive tasks, etc.
    And when the battery level is low, perform a graceful shutdown.
    If power comes back then it would go back to normal mode.

    Is this possible, and what hardware (UPS) would you advice?

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: New server build, Disk and UPS advice.

    APC power supplies are well-supported in Linux by the apcupsd daemon. It will monitor the status of the UPS and gracefully shut the machine down if the batteries are close to exhaustion. You can also configure it to run in a client/server mode so that all the machines in the network can be informed when the power goes out.

    Like most UPS manufacturers, APC has an online configuration tool to determine how large a device you'll need. You're probably looking at something like this.

  3. #3
    Join Date
    Apr 2006
    Beans
    417

    Re: New server build, Disk and UPS advice.

    I agree with the above post. Do all of the APC's with USB interface with Linux now? I know some years back you would need to get the more expensive Smart-UPS line with serial interface to work with Linux.

    I think RAID 10 with 4 drives would be a good option. It has fast rebuild and faster performance than RAID 5 and RAID 1. It has the possibility of surviving 2 drive failures if it is the right combination of drives that fail. All at the cost of halving your disk space.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: New server build, Disk and UPS advice.

    Yes, the apcupsd daemon supports both serial and USB connections to the power supply. I have a Back-UPS 1300 here in my office that uses USB.

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: New server build, Disk and UPS advice.

    Quote Originally Posted by bakegoodz View Post
    I agree with the above post. Do all of the APC's with USB interface with Linux now? I know some years back you would need to get the more expensive Smart-UPS line with serial interface to work with Linux.

    I think RAID 10 with 4 drives would be a good option. It has fast rebuild and faster performance than RAID 5 and RAID 1. It has the possibility of surviving 2 drive failures if it is the right combination of drives that fail. All at the cost of halving your disk space.
    Just to add to Seiji's advice, I haven't run into an APC unit that didn't want to work with apcudpd.

    The one I have on my server is this one:
    http://www.newegg.com/Product/Produc...82E16842101419

    RAID10 is mirrored striping, so that should be able to handle 2 drives going out.

    I prefer RAID6 for large arrays, or RAID5 for smaller ones. The one I am running now is a 3 disk RAID5 array.

    As always backup, backup, backup.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: New server build, Disk and UPS advice.

    I'm not sure if this applies to WD Red drives, however on both WD Green and Blue drives I have had problems with the heads continually loading and unloading. Basically the drive parks the heads to save a little power and then along comes the ext4 journalling process and kicks it back into life - this cycle repeats every few seconds leading to a massive Load Cycle Count racking up very quickly.

    Install smart tools and keep an eye on value 193 Load_Cycle_Count with:

    Code:
    sudo smartctl -A /dev/sda | grep "^193"
    The WD Green in my little 10.04 server went way over its quoted service limit for cycle counts in only about 4 months before I came to know about it while investigating something else.

    There is a tool available to stop the drive parking the heads all the time here:
    http://idle3-tools.sourceforge.net/

    That worked fine for me on my Greens and Blues.

    Only use it if you come across the problem with your Reds - and as with everything, use it at your own risk. I cannot attest to its suitability for Red drives, just that it worked for me on Green and Blue.

  7. #7
    Join Date
    Apr 2006
    Beans
    417

    Drives designed for RAID is necessary

    After having several drives fail in a RAID array and then pass a full diagnostic, I researched and found that you need drives with firmware designed for RAIDs. WD Raid edition, WD RED, and Seagate Constellation drives have this firmware. Of coarse they charge more, WD Reds are pretty reasonable, but with a 3 instead of 5 year warranty. I miss when you could hack a WD Black to be a Raid edition.

  8. #8
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Drives designed for RAID is necessary

    Quote Originally Posted by bakegoodz View Post
    After having several drives fail in a RAID array and then pass a full diagnostic, I researched and found that you need drives with firmware designed for RAIDs. WD Raid edition, WD RED, and Seagate Constellation drives have this firmware. Of coarse they charge more, WD Reds are pretty reasonable, but with a 3 instead of 5 year warranty. I miss when you could hack a WD Black to be a Raid edition.
    Desktop drives have worked fine for me on my home server.

    For enterprise use, I would get RE drives, obviously.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  9. #9
    Join Date
    Apr 2006
    Beans
    417

    Re: New server build, Disk and UPS advice.

    You may get away with desktop drives in a RAID. In my experience I had to wipe, sector scan the "failed" drive and then rebuild too many times. The chances of another failure during rebuild is pretty uncomfortable, especially drives over 1 TB.

  10. #10
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: New server build, Disk and UPS advice.

    Quote Originally Posted by bakegoodz View Post
    You may get away with desktop drives in a RAID. In my experience I had to wipe, sector scan the "failed" drive and then rebuild too many times. The chances of another failure during rebuild is pretty uncomfortable, especially drives over 1 TB.
    That's true, which is why you have a backup of your array in case it goes down.

    I've had a couple of my drives develop bad sectors but it hasn't dropped out of the RAID, which is a good thing.

    *knocks on wood*
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •