MediaSmartServer.net http://www.mediasmartserver.net/forums/ |
|
CentOS 6 Project http://www.mediasmartserver.net/forums/viewtopic.php?f=2&t=13134 |
Page 1 of 1 |
Author: | pclov3r [ Sun Apr 07, 2013 2:48 am ] |
Post subject: | CentOS 6 Project |
I was looking at buying a cheap NAS but than I saw a good deal on a used EX475 and decided why not use this instead of a cheap NAS. Here is my project. Install CentOS 6 and setup RAID1. Drive config will look like this 80 GB Western Digital boot disk. 2x1 TB Western Digital RE4 drives. As per https://www.centos.org/modules/newbb/vi ... 7&start=15 it appears a driver exists for the NIC. So I worte this bash script Code: #!/bin/bash #Setup Drivers echo alias eth0 sis190 >> /etc/modprobe.conf echo modprobe sis190 >> /etc/rc.modules When you move a hard drive to a new machine the mac address to the old NIC will be left behind so you need to remove the /etc/udev/rules.d/70-persistent-net.rules file to force it to re-generate so to remove it Code: rm -rfv /etc/udev/rules.d/70-persistent-net.rules Hopefully on the next boot which will be the media smart that file will be re-generated. However, The NIC will still need to be configured so hopefully once the driver is loaded into the kernel I'll be able to blindly run this bash script to setup the network. Yes, I know to replace 0.0.0.0 with the proper IP's Code: #!/bin/bash #Setup Varables MAC=`ifconfig -a | grep HWaddr | head -1 | awk {'print$5'}` export IP=0.0.0.0 export NETMASK=0.0.0.0 export GATEWAY=0.0.0.0 #Configure eth0 echo DEVICE=eth0 > /etc/sysconfig/network-scripts/ifcfg-eth0 echo HWADDR=$MAC >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo IPADDR=$IP >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo BOOTPROTO=none >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo NETMASK=$NETMASK >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo TYPE=Ethernet >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo GATEWAY=$GATEWAY >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo IPV6INIT=no >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo ONBOOT=yes >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo USERCTL=no >> /etc/sysconfig/network-scripts/ifcfg-eth0 #Restart Network Service service network restart Once networking is working the goal than is to get LED lights working as per viewtopic.php?f=2&t=2335 Right now I have this Code: [root@dnsserver leds-hpex47x]# ls leds-hpex47x.c leds-hpex47x.ko leds-hpex47x.ko.unsigned leds-hpex47x.mod.c leds-hpex47x.mod.o leds-hpex47x.o Makefile modules.order Module.symvers [root@dnsserver leds-hpex47x]# modinfo leds-hpex47x.ko filename: leds-hpex47x.ko alias: platform:hpex47x-led license: GPL description: HP MediaSmart Server EX47x HDD Bay LED Driver author: David Kuder <dkuder@thewaffleiron.net> srcversion: 56767E3D3D0D2CC3829EC0F depends: vermagic: 2.6.32-358.2.1.el6.i686 SMP mod_unload modversions 686 [root@dnsserver leds-hpex47x]# insmod leds-hpex47x.ko [root@dnsserver leds-hpex47x]# lsmod | grep leds leds_hpex47x 1944 0 It appears that it SHOULD work hopefully. So Far I have setup the boot drive on another pc and have CentOS all setup. I'll let you know how my project goes once I get the unit. I am YET to see anybody do a in-depth Linux install for this. I've only seen Ubuntu installs. I'm a huge fan of CentOS which is RHEL which is stable IMO so this could be a first trying to get CentOS working on this |
Page 1 of 1 | All times are UTC - 7 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |