Difference between revisions of "Lustre install for Unit.tv"
Jump to navigation
Jump to search
| Line 137: | Line 137: | ||
2.1 install and configure IML with the latest RPMs | 2.1 install and configure IML with the latest RPMs | ||
| + | <syntaxhighlight> | ||
| + | 32 cd /var/lib/chroma/repo/lustre | ||
| + | 33 ls | ||
| + | 34 rm -fr * | ||
| + | 35 ls | ||
| + | 36 cp -r ~/artifacts/* . | ||
| + | 37 ls | ||
| + | 38 cd .. | ||
| + | 39 yum install createrepo | ||
| + | 40 ls | ||
| + | 41 create /var/lib/chroma/repo/lustre | ||
| + | 42 createrepo /var/lib/chroma/repo/lustre #create repo for luster servers | ||
| + | |||
| + | </syntaxhighlight> | ||
2.1.1 change the eht0 ip to 172.28.11.1 | 2.1.1 change the eht0 ip to 172.28.11.1 | ||
Revision as of 14:41, 9 July 2015
Preparation
Nodes
IML:
- CentOS 6.6
- Cobbler
- let kickstart file to only install system on first partition
- IML
MDS
- CentOS 6.6
- RAID:
- small partition for MGS
- large partition for MDT
OSS:
- CentOS 6.6
- RAID:
- 2 RAID arays: r6
Network
- management netowrk
- PXE network: 172.28.11.xx
- subnet for eth1 on iml:
- ip: 172.105.0.0
- IPMI network: 172.105.1.xx
- IB network (private)
- IP: 192.168.0.x
- ETH Network (private)
- IP: 192.168.1.x
- Switch
- enable ETH license
- Cards
- first port IB, second port eth
- IML
- IP: 172.28.0.114
Hardware
- Network
- all IB card should be set to port1 -> IB, port2 -> ETH
- some port on IB switch should be ETH
- for every pair of JBOD, connect network cable directly to each other
Installation Steps
1. install cobbler
1.1 follow the steps on wiki
1.2 check all services are running, httpd, dhcpd, xinetd, cobblerd
1.3 open the ports for cobbler and disable SELINUX
[root@localhost ~]# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.7 on Wed Jul 8 16:37:31 2015
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [44:2156]
:OUTPUT ACCEPT [48:2352]
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Wed Jul 8 16:37:31 2015
# Generated by iptables-save v1.4.7 on Wed Jul 8 16:37:31 2015
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [31985:2140861]
-A INPUT -s 172.105.0.0/16 -p udp -m udp --dport 69 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 69 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25151 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 69 -j ACCEPT
-A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o eth1 -j ACCEPT
COMMIT
# Completed on Wed Jul 8 16:37:31 20151.4 enable traffic forwarding
[root@localhost ~]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPTreference content for kickstart file to do the partition:
# Allow anaconda to partition the system as needed
clearpart --all
part raid.sda1 --asprimary --fstype="raid" --ondisk=sda --size=512
part raid.sda2 --asprimary --fstype="raid" --ondisk=sda --size=20000
part raid.sda3 --fstype="raid" --ondisk=sda --size=5000
part raid.sda4 --fstype="raid" --ondisk=sda --size=10000
part raid.sda5 --fstype="raid" --ondisk=sda --size=5000
part raid.sda6 --fstype="raid" --ondisk=sda --size=64000
part raid.sda7 --fstype="raid" --ondisk=sda --size=1 --grow
part raid.sdb1 --asprimary --fstype="raid" --ondisk=sdb --size=512
part raid.sdb2 --asprimary --fstype="raid" --ondisk=sdb --size=20000
part raid.sdb3 --fstype="raid" --ondisk=sdb --size=5000
part raid.sdb4 --fstype="raid" --ondisk=sdb --size=10000
part raid.sdb5 --fstype="raid" --ondisk=sdb --size=5000
part raid.sdb6 --fstype="raid" --ondisk=sdb --size=64000
part raid.sdb7 --fstype="raid" --ondisk=sdb --size=1 --grow
raid /boot --device=md0 --fstype="ext4" --level=RAID1 raid.sda1 raid.sdb1
raid / --device=md1 --fstype="ext4" --level=RAID1 raid.sda2 raid.sdb2
raid /tmp --device=md2 --fstype="ext4" --level=RAID1 raid.sda3 raid.sdb3
raid /var --device=md3 --fstype="ext4" --level=RAID1 raid.sda4 raid.sdb4
raid /usr/vice/cache --device=md4 --fstype="ext4" --level=RAID1 raid.sda5 raid.sdb5
raid /swap --device=md5 --fstype="swap" --level=RAID1 raid.sda6 raid.sdb6
raid /pool --device=md6 --fstype="ext4" --level=RAID0 raid.sda7 raid.sdb72 Set up IML
2.0.1 set up virtual env on CentOS
follow this page:http://wiki.bostonlabs.co.uk/w/index.php?title=KVM:_Installation_and_operation
and disable dhcp on virt-manager on this page:http://wiki.bostonlabs.co.uk/w/index.php?title=KVM:_Tips_and_Tricks#Disable_DHCP_on_KVM_Server
2.1 install and configure IML with the latest RPMs
32 cd /var/lib/chroma/repo/lustre
33 ls
34 rm -fr *
35 ls
36 cp -r ~/artifacts/* .
37 ls
38 cd ..
39 yum install createrepo
40 ls
41 create /var/lib/chroma/repo/lustre
42 createrepo /var/lib/chroma/repo/lustre #create repo for luster servers2.1.1 change the eht0 ip to 172.28.11.1
3 deploy all other nodes using cobbler
4 deploy IEEL on all other nodes
172.105.0.103