42n4

xen7glusterfs

Jun 9th, 2016
1,033
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.56 KB | None | 0 0
  1. ####################################################################################################################################
  2. #Configure additional cards NIC1 (192.168.0.22?) i NIC2 (10.10.10.1?)
  3. #USE IT IN COMMAND LINE (without #):
  4. #curl http://pastebin.com/raw/SNnhH3rx > xendeletelocalsr.sh; tr -d "\015" < xendeletelocalsr.sh > xendeletelocalsrnew.sh
  5. #sh xendeletelocalsrnew.sh
  6. #I have managed to configure 4 servers of beta3 dundee with glusterfs and ctdb and fully working ha without SPOF.
  7. #I have four NICs: NIC0 management of xenserver 192.168.0.20*, NIC1 gluster vm client 192.168.0.22*, bond NIC2-3 10.10.10.1*, VIPs #from ctdb 192.168.0.21*. In /etc/hosts #I keep only 10.10.10.1x server ips and use them in glusterfs volume creation and in #consequence in glusterfs backend traffic.
  8. #The main compilation script
  9. #Removing local storage and configuring ctdb, /etc/hosts:
  10. #http://pastebin.com/SNnhH3rx
  11. #At the end you should:
  12. #gluster peer probe servers
  13. #and
  14. #init_gluster3 "xen" "1" "2" "3" "vol0" 3 #replica 3 at the end!
  15. #create SR nfs and iso, make vm and install xen tools and enable ha with 3 failovers.
  16. #You are encouraged to send some patches or opinions newfuntek(at)gmail.com
  17. #Here are some screenshots of the glusterfs sr in the xenserver pool:
  18. #http://s17.postimg.org/3y47n8w27/glusterfsxenserv03.jpg
  19. #http://s17.postimg.org/n4heqfcjz/glusterfsxenserv01.jpg
  20. #http://s17.postimg.org/gs29gl9hr/glusterfsxenserv02.jpg
  21. ####################################################################################################################################
  22. #Internet help
  23. #Xenserver doc links
  24. #http://www.poppelgaard.com/citrix-xenserver-6-5
  25. #http://www.gluster.org/community/documentation/index.php/GlusterFS_Documentation
  26. #xenserver tutorials and cheatsheets
  27. #http://www.admin-magazine.com/HPC/Articles/GlusterFS
  28. #http://www.slashroot.in/gfs-gluster-file-system-complete-tutorial-guide-for-an-administrator
  29. #https://virtualizationandstorage.wordpress.com/2010/11/15/xenserver-commands/
  30. #http://krypted.com/unix/using-the-xensource-command-line-interface/
  31. #http://funwithlinux.net/2013/02/glusterfs-tips-and-tricks-centos/
  32. #http://xmodulo.com/category/xenserver
  33. #compilation of xenserver
  34. #https://discussions.citrix.com/topic/372069-does-libvmi-work-on-xenserver/
  35. #glusterfs slides info
  36. #http://rajesh-joseph.blogspot.com/2015/11/usenix-lisa-2015-tutorial-on-glusterfs.html
  37. #https://github.com/gluster/gluster-tutorial/blob/master/LISA-GlusterFS-Introduction.pdf
  38. #https://github.com/gluster/gluster-tutorial/blob/master/LISA-GlusterFS-Hands-on.pdf
  39. #compilation of glusterfs
  40. #http://majentis.com/?p=319
  41. #różne możliwości glusterfs jak w RAID
  42. #http://sysadm.pp.ua/linux/glusterfs-setup.html
  43. #glusterfs performance
  44. #https://blog.secretisland.de/xenserver-mit-glusterfs/
  45. #http://blog.dradmin.co.in/?tag=glusterfs-how-to
  46. #https://gluster.readthedocs.org/en/latest/Administrator%20Guide/Managing%20Volumes/
  47. #https://www.mail-archive.com/users@ovirt.org/msg31079.html
  48. #http://www.gluster.org/community/documentation/index.php/Performance_Testing
  49. #glusterfs on lvm
  50. #https://support.rackspace.com/how-to/getting-started-with-glusterfs-considerations-and-installation/
  51. #glusterfs profiling (delays in ops)
  52. #https://gluster.readthedocs.org/en/latest/Administrator%20Guide/Monitoring%20Workload/
  53. #xenserver glusterfs discussion - they said not possible ;)
  54. #http://discussions.citrix.com/topic/366729-about-xenserver-glusterfs/page-2
  55. #xenserver ha
  56. #http://docs.citrix.com/de-de/xencenter/6-1/xs-xc-protection/xs-xc-pools-ha/xs-xc-pools-ha-about.html
  57. #http://xapi-project.github.io/features/HA/HA.html
  58. #https://support.citrix.com/servlet/KbServlet/download/21018-102-664364/High%20Availability%20for%20Citrix%20XenServer.pdf
  59. #https://xen-orchestra.com/blog/xenserver-and-vm-high-availability/
  60. #https://discussions.citrix.com/topic/367150-ntp-ha-self-fencing/page-2#entry1884695
  61. #http://discussions.citrix.com/topic/333343-need-help-interpreting-xha-logs/
  62. #failure ha restart
  63. #http://support.citrix.com/article/CTX128275
  64. #http://citrixtechs.com/blog/help-my-citrix-xenserver-poolmaster-is-down-2/
  65. #http://discussions.citrix.com/topic/292757-local-storage-unplugged-and-un-repairable/
  66. #xenserver iscsi
  67. #http://gluster.readthedocs.org/en/latest/Administrator%20Guide/GlusterFS%20iSCSI/#Running_the_target_on_the_gluster_client
  68. #xenserver multipath
  69. #http://docs.citrix.com/content/dam/docs/en-us/xenserver/xenserver-61/xs-design-multipathing-config.pdf
  70. #xenserver iptables discussion
  71. #http://discussions.citrix.com/topic/235974-cannot-add-new-nfs-virtual-disk-sr-can-add-iso-library-nfs-sr/page-2
  72. #rebalance nics (bond for glusterfs)
  73. #http://www.gluster.org/pipermail/gluster-users/2014-November/019463.html
  74. #http://www.gluster.org/pipermail/gluster-users/2014-November/019466.html
  75. #multi nic splitnetwork for gluster in near future
  76. #https://www.gluster.org/pipermail/gluster-users/2015-May/021815.html
  77. #http://www.gluster.org/community/documentation/index.php/Features/SplitNetwork
  78. #http://pl.atyp.us/hekafs.org/index.php/2013/01/split-and-secure-networks-for-glusterfs/
  79. #host in vm inside vm config
  80. #https://wiki.openstack.org/wiki/XenServer/VirtualBox
  81. #reinstall xenserver host
  82. #http://support.citrix.com/article/CTX136342
  83. #discuss rejoin xenserver
  84. #http://discussions.citrix.com/topic/303468-server-removed-from-pool-after-failure-now-that-it-is-back-it-can-not-rejoin-pool-and-emergency-master-reset-does-not-work/
  85. #increase dom0 memory
  86. #http://support.citrix.com/article/CTX134951
  87. #find rpm
  88. #http://rpm.pbone.net/
  89. #win admin
  90. #win7-10: Net user administrator /active:yes
  91. #umount /dev/v/l
  92. #e2fsck -f /dev/v/l
  93. #resize2fs -p /dev/v/l 4G
  94. #lvreduce -L -8.9G /dev/
  95.  
  96. ####################################################################################################################################
  97. #turn off nfs i iptables
  98. chkconfig nfs off
  99. service nfs stop
  100. rm -f /etc/exports
  101. service ntpd restart
  102. chkconfig ntpd on
  103. service iptables stop
  104. chkconfig iptables off
  105. systemctl disable firewalld
  106. systemctl stop firewalld
  107.  
  108. #turn off selinux
  109. sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/sysconfig/selinux
  110. #change the linux name to Centos for CEPH-DEPLOY
  111. mv /etc/centos-release /etc/centos-release.xs -f
  112. echo 'CentOS release 7.2 (Final)' > /etc/centos-release
  113.  
  114. #new package update lists
  115. #https://discussions.citrix.com/topic/372069-does-libvmi-work-on-xenserver/
  116. #yum install epel-release
  117. #http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
  118. #http://elrepo.org/tiki/tiki-index.php
  119. #rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
  120. #rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
  121. #wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
  122. #rpm -ivh epel-release-7-6.noarch.rpm
  123. #rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
  124. #rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
  125. #rpm -Uvh http://repo.webtatic.com/yum/el7/webtatic-release.rpm
  126. sed -i -e "/baseurl=http:\/\/www.uk/d" /etc/yum.repos.d/CentOS-Base.repo
  127. sed -i -e "/mirrorlist/d" /etc/yum.repos.d/CentOS-Base.repo
  128. sed -i -e "s/^#base/base/" /etc/yum.repos.d/CentOS-Base.repo
  129. sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Base.repo
  130. sed -i -e "s/\$releasever/7/" /etc/yum.repos.d/CentOS-Base.repo
  131. yum install epel-release -y
  132. yum install centos-release-gluster -y
  133. sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Gluster-3.7.repo
  134. sed -i -e "s/\$releasever/7/" /etc/yum.repos.d/CentOS-Gluster-3.7.repo
  135. sed -i -e "s/buildlogs.centos.org\/centos\/7\/storage\/\$basearch\/gluster-3.7/buildlogs.centos.org\/centos\/7\/storage\/\$basearch\/gluster-3.8/" /etc/yum.repos.d/CentOS-Gluster-3.7.repo
  136. #sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/epel-testing.repo
  137. yum clean all
  138. yum repolist enabled
  139. yum -y install deltarpm
  140. #yum update --skip-broken -y
  141. yum -y install vim-enhanced mc yum-utils curl e4fsprogs epel-rpm-macros
  142. curl ix.io/client > /usr/local/bin/ix
  143. chmod +x /usr/local/bin/ix
  144.  
  145. yum install -y glusterfs glusterfs-api-devel python-gluster ctdb ceph-deploy bind-utils xfsprogs git dnsmasq xfsprogs ansible
  146. #yum install -y open-vm-tools ## TYLKO DLA MASZYN WIRTUALNYCH VMWARE
  147.  
  148. #run serwis glusterfs
  149. systemctl unmask rpcbind.socket
  150. service glusterd start
  151. service glusterd status
  152. service glusterfsd start
  153. service glusterfsd status
  154. chkconfig glusterd on
  155. chkconfig glusterfsd on
  156.  
  157. wget http://halizard.org/release/noSAN-combined/halizard_nosan_installer_1.4.7
  158. chmod 755 halizard_nosan_installer_1.4.7  
  159. sed -i 's/`uname -r`/3.10.0+2/' halizard_nosan_installer_1.4.7
  160.  
  161. #curl http://ix.io/oxr > /etc/ntp.conf.ix
  162. #curl http://ix.io/ojO > /etc/ntp.conf.ix
  163. #gluster10_4nodes
  164. #curl http://ix.io/op8 > /etc/ntp.conf.ix
  165. #gluster_200_201
  166. #curl http://ix.io/oKN > /etc/ntp.conf.ix
  167. #gluster_201_202_203
  168. curl http://ix.io/QLt > /etc/ntp.conf.ix
  169. #gluster10_3nodes
  170. #curl http://ix.io/Tm5 > /etc/ntp.conf.ix
  171. tr -d "\015" < /etc/ntp.conf.ix > /etc/ntp.conf
  172. echo OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -x" > /etc/sysconfig/ntpd
  173. echo SYNC_HWCLOCK=yes >> /etc/sysconfig/ntpd
  174. hwclock --systohc
  175. service ntpd stop
  176. service ntpd start
  177. ntpstat -s
  178. ntpq -p
  179. ntpstat -s
  180.  
  181. echo "#/opt/xensource/bin/xe-toolstack-restart" >> /etc/rc.d/rc.local
  182. echo "service glusterd restart" >> /etc/rc.d/rc.local
  183. echo "service glusterfsd restart" >> /etc/rc.d/rc.local
  184. echo "service ctdb restart" >> /etc/rc.d/rc.local
  185. chmod 755  /etc/rc.d/rc.local
  186.  
  187. echo "xe host-emergency-ha-disable force=true" > /usr/local/bin/restartfence
  188. echo "/opt/xensource/bin/xe-toolstack-restart" >> /usr/local/bin/restartfence
  189. echo "service glusterd restart" >> /usr/local/bin/restartfence
  190. echo "service glusterfsd restart" >> /usr/local/bin/restartfence
  191. echo "service ctdb restart" >> /usr/local/bin/restartfence  
  192. chmod 755 /usr/local/bin/restartfence
  193.  
  194. echo "/opt/xensource/bin/xe-toolstack-restart" >> /usr/local/bin/restartoolxen
  195. echo "service glusterd restart" >> /usr/local/bin/restartoolxen
  196. echo "service glusterfsd restart" >> /usr/local/bin/restartoolxen
  197. echo "service ctdb restart" >> /usr/local/bin/restartoolxen
  198. chmod 755 /usr/local/bin/restartoolxen
  199.  
  200. echo "service glusterd restart" > /usr/local/bin/restartdodatki
  201. echo "service glusterfsd restart" >> /usr/local/bin/restartdodatki
  202. echo "service ctdb restart" >> /usr/local/bin/restartdodatki
  203. chmod 755 /usr/local/bin/restartdodatki
  204.  
  205. echo "service glusterd restart" > /usr/local/bin/restartgluster
  206. echo "service glusterfsd restart" >> /usr/local/bin/restartgluster
  207. chmod 755 /usr/local/bin/restartgluster
  208.  
  209. #init_gluster4 "xen" "1" "2" "3" "4" "vol0" 4
  210. #server="xen"; host01="1"; host02="2"; host03="3"; host04="4"; volume="vol0"; replica=4;
  211. cat <<__EOF__ > /usr/local/bin/init_gluster4
  212. server=\$1  
  213. host01=\$2  
  214. host02=\$3  
  215. host03=\$4
  216. host04=\$5  
  217. volume=\$6
  218. replica=\$7
  219. gluster peer status
  220. #na dowolnym jednym wykonac
  221. #glusterfs dwa volumeny vol0 (iso) I vol1 (gfs) na sda3 i sda2  
  222. #gluster volume stop \$volume force
  223. #gluster volume delete \$volume force
  224. gluster volume create \$volume replica \$replica \${server}\${host01}:/export/\${server}\${host01}-\$volume \${server}\${host02}:/export/\${server}\${host02}-\$volume \${server}\${host03}:/export/\${server}\${host03}-\$volume \${server}\${host04}:/export/\${server}\${host04}-\$volume force  
  225. gluster volume set \$volume nfs.port 2049  
  226. gluster volume set \$volume performance.cache-size 128MB  
  227. gluster volume set \$volume performance.write-behind-window-size 4MB  
  228. gluster volume set \$volume performance.io-thread-count 64  
  229. gluster volume set \$volume performance.io-cache on  
  230. gluster volume set \$volume performance.read-ahead on  
  231. gluster volume start \$volume  
  232. gluster volume info \$volume  
  233. gluster volume status \$volume  
  234. #montowanie NFS SR pod localhost lub VIP :/vol0 lub vol1  
  235. __EOF__
  236. chmod 755 /usr/local/bin/init_gluster4
  237.  
  238. #init_gluster3 "xen" "1" "2" "3" "vol0" 3
  239. #server="xen"; host01="1"; host02="2"; host03="3"; volume="vol0"; replica=3;
  240. cat <<__EOF__ > /usr/local/bin/init_gluster3
  241. server=\$1  
  242. host01=\$2  
  243. host02=\$3  
  244. host03=\$4
  245. volume=\$5
  246. replica=\$6
  247. gluster peer status
  248. #na dowolnym jednym wykonac
  249. #glusterfs dwa volumeny vol0 (iso) I vol1 (gfs) na sda3 i sda2  
  250. #gluster volume stop \$volume force
  251. #gluster volume delete \$volume force
  252. gluster volume create \$volume replica \$replica \${server}\${host01}:/export/\${server}\${host01}-\$volume \${server}\${host02}:/export/\${server}\${host02}-\$volume \${server}\${host03}:/export/\${server}\${host03}-\$volume force  
  253. gluster volume set \$volume nfs.port 2049  
  254. gluster volume set \$volume performance.cache-size 128MB  
  255. gluster volume set \$volume performance.write-behind-window-size 4MB  
  256. gluster volume set \$volume performance.io-thread-count 64  
  257. gluster volume set \$volume performance.io-cache on  
  258. gluster volume set \$volume performance.read-ahead on  
  259. gluster volume start \$volume  
  260. gluster volume info \$volume  
  261. gluster volume status \$volume  
  262. #montowanie NFS SR pod localhost lub VIP :/vol0 lub vol1  
  263. __EOF__
  264. chmod 755 /usr/local/bin/init_gluster3
  265.  
  266. #init_gluster2 "xen" "1" "2" "vol0" 2
  267. #server="xen"; host01="1"; host02="2"; volume="vol0"; replica=2;
  268. cat <<__EOF__ > /usr/local/bin/init_gluster2
  269. server=\$1  
  270. host01=\$2  
  271. host02=\$3  
  272. volume=\$4
  273. replica=\$5
  274. gluster peer status
  275. #na dowolnym jednym wykonac
  276. #glusterfs dwa volumeny vol0 (iso) I vol1 (gfs) na sda3 i sda2  
  277. #gluster volume stop \$volume force
  278. #gluster volume delete \$volume force
  279. gluster volume create \$volume replica \$replica \${server}\${host01}:/export/\${server}\${host01}-\$volume \${server}\${host02}:/export/\${server}\${host02}-\$volume force  
  280. gluster volume set \$volume nfs.port 2049  
  281. gluster volume set \$volume performance.cache-size 128MB  
  282. gluster volume set \$volume performance.write-behind-window-size 4MB  
  283. gluster volume set \$volume performance.io-thread-count 64  
  284. gluster volume set \$volume performance.io-cache on  
  285. gluster volume set \$volume performance.read-ahead on  
  286. gluster volume start \$volume  
  287. gluster volume info \$volume  
  288. gluster volume status \$volume  
  289. #montowanie NFS SR pod localhost lub VIP :/vol0 lub vol1  
  290. __EOF__
  291. chmod 755 /usr/local/bin/init_gluster2
  292.  
  293. #init_brick "/dev/sdb1" "vol2"
  294. cat <<__EOF__ > /usr/local/bin/init_brick
  295. dev4gfs=\$1  
  296. volume=\$2  
  297. hname=\`hostname\`
  298. mkfs.ext4 -m 0 -j \$dev4gfs
  299. tune2fs -O dir_index -o user_xattr \$dev4gfs
  300. mkdir -p /export/\${hname}-\${volume}
  301. echo  "\$dev4gfs /export/\${hname}-\${volume} ext4 rw,noatime,nodiratime,user_xattr,barrier=0,data=ordered 1 2" >> /etc/fstab
  302. mount -a
  303. __EOF__
  304. chmod 755 /usr/local/bin/init_brick
  305.  
  306. #reformat_brick "/dev/sda2" "vol1"
  307. cat <<__EOF__ > /usr/local/bin/reformat_brick
  308. dev4gfs=\$1  
  309. volume=\$2  
  310. hname=\`hostname\`
  311. umount /export/\${hname}-\${volume}
  312. mkfs.ext4 -m 0 -j \$dev4gfs
  313. tune2fs -O dir_index -o user_xattr \$dev4gfs
  314. mount /export/\${hname}-\${volume}
  315. __EOF__
  316. chmod 755 /usr/local/bin/reformat_brick
  317.  
  318. #removeallandformat "/dev/sdb"
  319. cat <<__EOF__ > /usr/local/bin/removeallandformat
  320. #!/bin/bash
  321. # Script to automatically format all partitions on /dev/sda and create
  322. # a single partition for the whole disk
  323. # Remove each partition
  324. for v_partition in \`parted -s \$1 print|awk '/^ / {print \$1}'\`; do umount \$1\${v_partition}; parted -s \$1 rm \${v_partition}; done
  325. # Find size of disk
  326. v_disk=\`parted -s \$1 print|awk '/^Disk \/dev/ {print \$3}'| sed 's/[Mm][Bb]//'\`
  327. # Create single partition
  328. parted -s \$1 mkpart primary 1 \${v_disk}
  329. # Format the partition
  330. # mke2fs -T ext3 \${1}1
  331. __EOF__
  332. chmod 755  /usr/local/bin/removeallandformat
  333.  
  334. ####################################################################################################################################
  335. #ctdb need compiling: SCHED_FIFO does not run in xenserver - how to enable it?
  336. yum install gcc-c++ autoconf rpm-build -y
  337. yum install popt-devel libtalloc-devel libtdb-devel libtevent-devel -y
  338.  
  339. mkdir rpmbuild/SPECS -p; curl http://ix.io/QMh > rpmbuild/SPECS/ctdb.spec
  340. wget https://download.samba.org/pub/ctdb/ctdb-2.5.6.tar.gz -P rpmbuild/SOURCES
  341. rpmbuild -bp rpmbuild/SPECS/ctdb.spec
  342. sed -i "s/SCHED_FIFO/SCHED_OTHER/"  rpmbuild/BUILD/ctdb-2.5.6/common/system_util.c  
  343. sed -i "s/p.sched_priority = 1/p.sched_priority = 0/"  rpmbuild/BUILD/ctdb-2.5.6/common/system_util.c  
  344. rpmbuild -bc --short-circuit  rpmbuild/SPECS/ctdb.spec --noclean
  345. rpmbuild -bi --short-circuit  rpmbuild/SPECS/ctdb.spec --noclean
  346. rpmbuild -bb --short-circuit  rpmbuild/SPECS/ctdb.spec --noclean
  347. rpm -ivh rpmbuild/RPMS/x86_64/ctdb-* --nodeps --force
  348. mv rpmbuild rpmbuild-ctdb -f
  349. sed -i "s/^# CTDB_LOGFILE/CTDB_LOGFILE/" /etc/sysconfig/ctdb
  350. sed -i "s/^# CTDB_NODES/CTDB_NODES/" /etc/sysconfig/ctdb  
  351. sed -i "s/^CTDB_RECOVERY_LOCK/# CTDB_RECOVERY_LOCK/" /etc/sysconfig/ctdb
  352. sed -i 's/Restart=no/Restart=always/' /usr/lib/systemd/system/ctdb.service
  353. #service smb stop
  354. #chkconfig smb off
  355.  
  356. #compiling module ceph.ko for cephfs
  357. wget http://downloadns.citrix.com.edgesuite.net/11624/XenServer-7.0.0-binpkg.iso
  358. mkdir iso1; mount XenServer-7.0.0-binpkg.iso iso1
  359. yum localinstall iso1/x86_64/kernel-* -y
  360. #wget http://downloadns.citrix.com.edgesuite.net/11620/XenServer-7.0.0-DDK.iso
  361. wget http://downloadns.citrix.com.edgesuite.net/11623/XenServer-7.0.0-source.iso
  362. mkdir iso; mount XenServer-7.0.0-source.iso iso
  363. rpm -ivh iso/kernel-3.10.96-484.383030.src.rpm
  364. rpmbuild -bp rpmbuild/SPECS/kernel.spec
  365. sed -i 's/# CONFIG_CEPH_FS is not set/CONFIG_CEPH_FS=m/g' rpmbuild/BUILD/kernel-3.10.96/linux-3.10.96/.config
  366. rpmbuild -bc --short-circuit  rpmbuild/SPECS/kernel.spec --noclean
  367. rpmbuild -bi --short-circuit  rpmbuild/SPECS/kernel.spec --noclean
  368. rpmbuild -bb --short-circuit  rpmbuild/SPECS/kernel.spec --noclean
  369. rpm -ivh rpmbuild/RPMS/x86_64/kernel-* --nodeps --force
  370. #scp  rpmbuild/RPMS/x86_64/kernel-* xen2:
  371. #scp  rpmbuild/RPMS/x86_64/kernel-* xen3:
  372. #rpm -ivh kernel-* --nodeps --force
  373.  
  374.  
  375. ####################################################################################################################################
  376. ##CEPH XENSERVER
  377. #http://www.virtualtothecore.com/en/quickly-build-a-new-ceph-cluster-with-ceph-deploy-on-centos-7/
  378. #ntpd, no selinux, ssh-copy-id to do
  379. useradd -d /home/cephuser -m cephuser
  380. echo "cephuser ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/cephuser
  381. chmod 0440 /etc/sudoers.d/cephuser
  382. sed -i s'/Defaults requiretty/#Defaults requiretty'/g /etc/sudoers
  383. git clone https://github.com/mstarikov/rbdsr.git
  384. cd rbdsr
  385. python ./install_rbdsr.py enable
  386. ####################################################################################################################################
  387. #KONIEC
Add Comment
Please, Sign In to add comment