Jump to content
RESET Forums (homeservershow.com)

CentOS and Storage Questions


Gmb1986
 Share

Recommended Posts

Hi all, great forum by the way - loads of information available. I've only recently registered but have been lurking for some time now!

 

I got a G1610T in January whilst they were on offer at Ebuyer, however have just got round to unboxing it this month.

 

I've put 16GB of ECC RAM in plus a 240GB SSD in the ODD bay. I plan to get 4 x 4TB WD Red soon.

 

I want to run the server with CentOS 7 for plex, file sharing, bittorrent and couchpotato, plus maybe a few other things. With this in mind I'll go for a physical install rather than multiple VMs.

 

For the OS Disk, I have created a Raid0 array, however when it comes to the data storage, I'm thinking of using ZFS in CentOS rather than via the B120i. How do I present these disks to centos, is it via the hpvsa driver or do I send them to the OS as individual R0 disks and then add those to the ZFS pool?

 

I'd like the disks to spin down when not in use ideally as this box is likely to be idle some of the time.

 

Many thanks.

 

Link to comment
Share on other sites

If you want to view the disks in centos you need to set the B120i to AHCI mode. If you don't want to use AHCI you will create Raid0 arrays for every HDD.

Link to comment
Share on other sites

I think that you need AHCI to be able to spin down. I'm not sure about this.

I'm using another controller on my server. (IBM M1015)

Link to comment
Share on other sites

Thanks. I'll give AHCI a try then and observe fan noise compared.

 

Shame I can't set the ODD SATA port to Raid and the 4 x enclosure port to AHCI.

Link to comment
Share on other sites

You won't get spin-down using b120i raid0, you must use ahci mode.

 

from my notes, this is how I set up a Centos7 machine for power saving, with a SSD boot drive.

su
yum -y install hdparm cpupowerutils
echo "hdparm -S 60 /dev/sda | logger" >> /etc/rc.local
echo "hdparm -S 60 /dev/sdb | logger" >> /etc/rc.local
echo "hdparm -S 60 /dev/sdc | logger" >> /etc/rc.local
echo "fstrim -v / | logger" >> /etc/rc.local
echo "cpupower frequency-set --governor powersave | logger" >> /etc/rc.local
chmod +x /etc/rc.local

this sets sda, b & c to 300 seconds idle spin down, ensures TRIM is active on the SSD and sets the cpu scheduler to power save mode. The command outputs go to /var/log/messages.

The final line makes /etc/rc.local executable, so it is run at startup.

 

 

out of interest, why ZFS and not mdadm?

Link to comment
Share on other sites

You won't get spin-down using b120i raid0, you must use ahci mode.

 

from my notes, this is how I set up a Centos7 machine for power saving, with a SSD boot drive.

su
yum -y install hdparm cpupowerutils
echo "hdparm -S 60 /dev/sda | logger" >> /etc/rc.local
echo "hdparm -S 60 /dev/sdb | logger" >> /etc/rc.local
echo "hdparm -S 60 /dev/sdc | logger" >> /etc/rc.local
echo "fstrim -v / | logger" >> /etc/rc.local
echo "cpupower frequency-set --governor powersave | logger" >> /etc/rc.local
chmod +x /etc/rc.local

this sets sda, b & c to 300 seconds idle spin down, ensures TRIM is active on the SSD and sets the cpu scheduler to power save mode. The command outputs go to /var/log/messages.

The final line makes /etc/rc.local executable, so it is run at startup.

 

 

out of interest, why ZFS and not mdadm?

 

Thanks for that.

 

Why ZFS? - I hadn't given it much thought tbh. I have 16GB ECC ram in the server, so memory is not an issue and like the data integrity options of ZFS, however mdadm is also an option...

Link to comment
Share on other sites

Thanks for that.

 

Why ZFS? - I hadn't given it much thought tbh. I have 16GB ECC ram in the server, so memory is not an issue and like the data integrity options of ZFS, however mdadm is also an option...

 

 

The thing that puts me off ZFS is that if your pool gets corrupted there are few tools available to fix it. (according to one of the regulars on the Freenas forum)

 

edit:over excitable auto-correct...

Edited by snapper
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...