RHEL / CentOS Install and inital configuration

1) Instal system with next parts:

Base server, NFS, iSCSI initiator, SMB, iscsi target (tgtd), infiniband support, ethtool, lm_sensors, freeipmi, ntfsprogs, kernel development, kernel sources, isc-bind, probably isc-dhcp, Desktop-Gnome

2) Configure /etc/fstab:

UUID=7246ce9c-298b-4eda-84cd-03a2b6b9146c /13Tb xfs defaults 1 2

2a) Mount 13Tb

3) Configure network interfaces

Configure IP addresses, MTU 9000 and routing (see /etc/sysconfig/network-scripts);

3a) Stop firewall:

service iptables stop

4) Configure tgtd with file /etc/tgt/targets.conf

default-driver iscsi
HeaderDigest CRC32C
<target iqn.2012.ru.knvr.storages:SAS-6G>
backing-store /dev/sda
</target>
MaxRecvDataSegmentLength 262144
MaxXmitDataSegmentLength 262144
MaxOutstandingR2T 16
ImmediateData Yes
FirstBurstLength 65536
MaxBurstLength 262144
MaxConnections 10

Try to make tgtd service active with service tgtd start, check on Mac

5) Compile acs_ame.ko from sources 3.0.7 using make command

(or read manual) in http://www2.accusys.com.tw/Download/Download.aspx?Dir=D%3a%5cDownload+%26+Upload%5cDownload%5cExaSAN%5cFor+DAS%5cA12S2-PS%5cUser+Manual%5cExaSAN_A12S2-PS_User_Guide_20130226_v1.5.pdf
Driver may be found in /13Tb/Svalka/Linux/Accusys_Maxtronic_307/ or downloaded from:
http://www2.accusys.com.tw/Download/Download.aspx?Dir=D%3a%5cDownload+%26+Upload%5cDownload%5cExaSAN%5cFor+DAS%5cExaRAID+HD%5cDriver%5cLinux%5c6xxxx_DR_Linux_3.0.7.zip
Unzip, cd to SourceCode dir, and run make
After compile acs_ame.ko, move it to /lib/modules/`uname -r`/kernel/drivers/scsi/acs_ame.ko
Then run

insmod /lib/modules/`uname -r`/kernel/drivers/scsi/acs_ame.ko

Then run:

cp /lib/modules/`uname -r`/modules.dep /lib/modules/`uname -r`/modules-bckup.dep
depmode
rmmod acs_ame.ko
modprobe acs_ame

If modprobe fails, check file:

grep acs_ame /lib/modules/`uname -r`/modules.dep

If acs_ame non present, add it manually:

cat >> /lib/modules/`uname -r`/modules.dep
kernel/drivers/scsi/acs_ame.ko:

Then load driver via

insmod /lib/modules/`uname -r`/kernel/drivers/scsi/acs_ame.ko; depmod; rmmod acs_ame; modprobe acs_ame

6) Check Accusys

dmesg | tail
If ACS Error: Get Bridge Base address error will be found, try to build driver from sources 2.2.2, located in /13Tb/Svalka/Linux/6xxxx_DR_Linux_2.2.2.zip

6a) Configure /etc/fstab

UUID=7246ce9c-298b-4eda-84cd-03a2b6b9146c	/13Tb	 	xfs	defaults	1 2
UUID=3ba27aca-f43c-4562-b72d-a6a950675ddc	/Incoming	xfs	defaults	1 2 
UUID=b992460e-eff6-4bda-b778-9a3f2eedbc67	/Decrypted	xfs	defaults	1 2 
UUID=e71c3ea1-48b6-469b-ba0d-91beecb99139	/mnt/RAID-5	xfs	defaults	1 2

6b) Build and install RaidGuard Server.

http://www2.accusys.com.tw/Download/Download.aspx?Dir=D%3a%5cDownload+%26+Upload%5cDownload%5cExaSAN%5cFor+DAS%5cA12S2-PS%5cGUI%5cServer%5cLinux.zip
Write RaidGuard server init string to /etc/rc.local

cat >> /etc/rc.local
/opt/AP_Accusys/Linux/x86_64/DTRGuiSrv

7) Disable SELinux

Disable SELinux by putting next strings in file /etc/sysconfig/selinux, then reboot

cat >> /etc/sysconfig/selinux
SELINUX=disabled
SELINUXTYPE=targeted

8) Install netatalk 2.2

Install netatalk 2.2 from /13Tb/Svalka/Linux/Installed_to_RHEL/netatalk-2.2.0-2.el6.x86_64.rpm
Configure netatalk 2.2

9) Install Paragon 8.5

Paragon 8.5 can be found in /13Tb/Svalka/Linux/Installed_to_RHEL/Paragon-147-FRE_InstallArchive_8.5.005.tbz

10) Configure /etc/exports like:

/13Tb	 	 10.11.1.116(rw) 192.168.1.0/24(rw)
/mnt/RAID-5	 192.168.1.0/24(rw,insecure)
/Incoming	 10.11.1.116(rw) 192.168.1.0/24(rw)

11) Configure SMB, as shown in

http://wiki.samba.org/index.php/Main_Page
http://wiki.samba.org/index.php/Samba_3.6_Features_added/changed#SMB2_support
http://www.samba.org/samba/docs/man/manpages-3/
Move tdb to /var/db directory, according /etc/samba/smb.conf(commented)

To check SAMBA config, run
testparm -s -v To check SAMBA config file, run
testparm -s /etc/configfile
If testparam give an error, try to adjust number of opened files:

tail /etc/security/limits.conf
* - nofile 16384

To check SAMBA version and status, run
smbsatus Samba user can be added with copommand
smbpasswd -a new_user

12) Install MegaCli

13) Install 7za

14) Change SElinux to permissive

pico /etc/sysconfig/selinux
SELINUX=permissive
Change shared folders attributes to chcon -t samba_share_t /path, as mentioned in /etc/samba/smb.conf(default)

15) Enable services autostart

Services can be enabled using “chkconfig service_name on”

16) Enable log exports to external log server

21.27 in /etc/rsyslog.conf

17) After restart, check sharing capabilities

linux/rhel_centos_install_config.txt · Last modified: 2014/09/20 18:03 by rybario
About this template
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5