1 2 3 | [root@i-8t7n6xp2 ~]# uname -r<br> 3.10.0-327.28.3.el7.x86_64<br> [root@i-8t7n6xp2 ~]# |
1 2 3 4 5 6 7 8 9 10 11 | # This file controls the state of SELinux on the system.<br> # SELINUX= can take one of these three values:<br> # enforcing - SELinux security policy is enforced.<br> # permissive - SELinux prints warnings instead of enforcing.<br> # disabled - No SELinux policy is loaded.<br> SELINUX=disable<br> # SELINUXTYPE= can take one of three two values:<br> # targeted - Targeted processes are protected,<br> # minimum - Modification of targeted policy.Only selected processes are protected.<br> # mls - Multi Level Security protection.<br> SELINUXTYPE=disabled |
1 | [root@i-8t7n6xp2 ~]# setenforce 0 |
1 2 3 4 5 6 7 8 9 | [root@i-8t7n6xp2 ~]# <strong>systemctl stop firewalld.service</strong><br> [root@i-8t7n6xp2 ~]# <strong>systemctl disable firewalld.service</strong><br> [root@i-8t7n6xp2~]# <strong>systemctl status firewalld.service</strong><br> firewalld.service - firewalld - dynamic firewall daemon<br> Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)<br> Active:inactive (dead)<br> Oct 06 05:00:34 dashdb systemd[1]: Stopped firewalld - dynamic firewall daemon.<br> Hint: Some lines were ellipsized, use -l to show in full.<br> [root@i-8t7n6xp2~]# |
1 | yum install -y iscsi-initiator-utils |
1 2 3 | iscsi-iname (以缺省前缀生成名称)<br> [root@i-8t7n6xp2 ~]# vi /etc/iscsi/initiatorname.iscsi<br> InitiatorName=iqn.1994-05.com.redhat:5ccad0ae5bb3 |
1 2 3 4 | [root@i-8t7n6xp2 ~]# iscsiadm -m discovery -t st -p 192.168.1.2<br> 192.168.1.2:3260,1 iqn.2014-12.com.qingcloud.s2:sn.data<br> [root@i-8t7n6xp2 ~]# iscsiadm -m node<br> 192.168.1.2:3260,1 iqn.2014-12.com.qingcloud.s2:sn.data |
1 2 3 4 5 | [root@i-8t7n6xp2 ~]# iscsiadm -m node -T iqn.2014-12.com.qingcloud.s2:sn.data-p 192.168.1.2 –login<br> Logging in to [iface: default, target: iqn.2014-12.com.qingcloud.s2:sn.data, portal:192.168.1.2,3260] (multiple)<br> Login to [iface: default, target:iqn.2014-12.com.qingcloud.s2:sn.data, portal: 192.168.1.2,3260] successful.<br> [root@i-8t7n6xp2 ~]# iscsiadm -m session<br> tcp: [1] 192.168.1.2:3260,1 iqn.2014-12.com.qingcloud.s2:sn.data (non-flash) |
1 | [root@i-8t7n6xp2 ~]# iscsiadm -m node -T iqn.2014-12.com.qingcloud.s2:sn.data -p 192.168.1.2 --op update -n node.startup -v automatic |
1 2 3 4 5 | [root@i-8t7n6xp2 ~]# lsblk<br> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br> sda 8:0 0 20G 0 disk<br> sda1 8:1 0 20G 0 part /<br> sdb 8:16 0 8G 0 disk [SWAP]<br> sdc 8:32 0 200G 0 disk |
1 2 3 4 5 | [root@i-si5oq07a ~]# more /etc/hosts<br> 127.0.0.1 localhost.localdomain localhost<br> 192.168.0.2 i-8t7n6xp2 i-8t7n6xp2<br> 192.168.0.3 i-oisebqqf i-oisebqqf<br> 192.168.0.4 i-si5oq07a i-si5oq07a<br> |
1 2 3 4 5 6 7 8 9 | vi /etc/ssh/sshd_config<br> PermitRootLogin yes<br> StrictModes no<br> RSAAuthentication yes<br> PubkeyAuthentication yes<br> AuthorizedKeysFile .ssh/authorized_keys<br> # To disable tunneled clear text passwords, change to no here!<br> PasswordAuthentication yes(否则 SCP 没权限执行,因为限制了不能用密码)<br> 重启 sshd 服务:systemctl restart sshd.service |
1 2 | [root@i-8t7n6xp2 ~]# ssh-keygen -t rsa<br> [root@i-8t7n6xp2 ~]# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys |
1 2 | ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.2 # 在 i-oisebqqf 上执行 ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.2 # 在 i-si5oq07a 上执行 |
1 2 | scp ~/.ssh/authorized_keys 192.168.0.3:~/.ssh/# 在 i-8t7n6xp2 上执行 scp ~/.ssh/authorized_keys 192.168.0.4:~/.ssh/# 在 i-8t7n6xp2 上执行 |
1 2 3 4 5 6 7 8 | #!/bin/bash<br> # Edit node list<br> nodes=" i-8t7n6xp2 i-oisebqqf i-si5oq07a"<br> # Test ssh configuration<br> for i in $nodes<br> do for j in $nodes<br> do echo -n "Testing ${i} to ${j}: "<br> ssh ${i} "ssh ${j} date"<br> done<br> done<br> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <strong>cd /root/download</strong><br><strong>tar xvfz gpfs-4.1.tar.gz</strong><br><strong>tar xvfz gpfs-4.1.1.11.tar.gz</strong><br> echo========================================================<br> echo Install GPFS GA RPMs<br> echo ========================================================<br> [root@i-si5oq07a products]#<strong>yum install -y libaio</strong><br> [root@i-si5oq07a products]# <strong>yum install -yksh</strong><br> [root@i-si5oq07a products]# <strong>yum install -y kernel-devel</strong><br> [root@i-si5oq07a products]# <strong>rpm -qa|grep kernel-devel</strong><br> kernel-devel-3.10.0-514.6.1.el7.x86_64<br> [root@i-si5oq07a products]# <strong>uname-r</strong><br> 3.10.0-514.6.1.el7.x86_64(版本号一定要一致,不一致 reboot 即可)<br> [root@i-si5oq07a src]#<strong>yum install </strong><strong>-y</strong><strong> imake gcc-c++</strong><br> [root@i-si5oq07a products]# <strong>rpm -ivh 4.1/*.rpm</strong><br> [root@i-si5oq07a products]# <strong>rpm -Uvh 4.1.1.11/*.rpm</strong><br> [root@i-si5oq07a products]# <strong>rpm-qa|grep gpfs</strong><br> gpfs.base-4.1.1-11.x86_64<br> gpfs.gskit-8.0.50-47.x86_64<br> gpfs.ext-4.1.1-11.x86_64<br> gpfs.gpl-4.1.1-11.noarch<br> gpfs.msg.en_US-4.1.1-11.noarch |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |