EX300(23Q) · Question #18
ISCSI Initiator The serverX.example.com provides an iscsi port(3260). connect the disk with desktopX.example.com and configure filesystem with the following requirements. Create 800MB partition on…
yum install -y iscsi-initiator-utils vim /etc/iscsi/initiatorname.iscsi InitiatorName=iqn.2014-11.com.example:desktop1 systemctl start iscsi systemctl start iscsid systemctl enable iscsi systemctl enable iscsid iscsiadm -m discoverydb --type sendtargets --portal…
Question
- The serverX.example.com provides an iscsi port(3260).
- connect the disk with desktopX.example.com and configure filesystem with the following requirements.
- Create 800MB partition on iscsi block device and assign the filesystem as xfs.
- Mount the volume under /mnt/initiator at the system boot time.
- The file sould be owned by root with 0644 permission.
- NOTE: content of the file should not be modified.
Explanation
yum install -y iscsi-initiator-utils
vim /etc/iscsi/initiatorname.iscsi InitiatorName=iqn.2014-11.com.example:desktop1
systemctl start iscsi systemctl start iscsid
systemctl enable iscsi systemctl enable iscsid
iscsiadm -m discoverydb --type sendtargets --portal serverX.example.com --discover iscsiadm -m node --targetname iqn.2014-10.com.example:serverX --portal serverX.example.com:3260 --login
fdisk /dev/sdb Create the partition of 800M
mkfs.xfs /dev/sdb1
mkdir -p /mnt/initiator mount /dev/sdb1 /mnt/initiator
blkid /dev/sdb1
vim /etc/fstab UUID="9213938-6753-4001-b939-4b5720c8ec5e" /mnt/initiator xfs _netdev 0 0
cd /mnt/initiator wget http://station.network0.example.com/pub/iscsi.txt chown root:iscsi iscsi.txt chmod 0644 iscsi.txt
Topics
Community Discussion
No community discussion yet for this question.