iscsi/client_connect.sh

raw link view readme
1
2 iscsiadm --mode node --targetname iqn.2016-01.com.domain:tgt1 --portal 10.17.0.4 --login
3
4 fdisk /dev/sdc <
5 n
6 p
7 1
8
9
10 w
11 EOF
12
13 mkfs.xfs /dev/sdc1
14
15 mkdir /var/lib/mongo
16
17 echo "$(xfs_admin -u /dev/sdc1 | sed "s/ //g") /var/lib/mongo xfs defaults,noatime 0 0" >> /etc/fstab
18
19 mount -a
20