Skip to main content

How to present a iscsi lun to a linux machine for creating file system

 

On the linux machine :

1)Find out the iscsi name of the host:

cat /etc/iscsi/initiatorname.iscsi

note:in RHEL install "yum install iscsi-initiator-utils" if initiatorname.iscsi not found

2)discover the target storage array using iscsi target IP:

iscsiadm -m discovery -t st -p <target IP>

this output will be having iqn number about the storage target


3)make an iscsi I-T session on the host:

iscsiadm -m node -T <IQN of target>  -p <target IP> --login


4)verify the IT connection session by:

iscsiadm -m session


5)present a LUN from array and export to the host using IQN of the host


6)After LUN presented do a rescan of iscsi device by:

rescan-scsi-bus.sh

7)Create a new file sytstem on the new device and mount

mkfs /dev/sdb 

mkdir /mount1

mount /dev/sdb /mount1



Comments

Popular posts from this blog

Deploy OVF fails Issues detected with selected template. Details: VALUE_ILLEGAL: No supported hardware versions among [virtualbox-2.2]; supported: [vmx-04, vmx-07, vmx-08, vmx-09, vmx-10, vmx-11, vmx-12, vmx-13, vmx-14, vmx-15, vmx-16, vmx-17, vmx-18, vmx-19].

 Error: While deploy using OVF file ,getting error as : Issues detected with selected template. Details: - -1:-1:VALUE_ILLEGAL: No supported hardware versions among [virtualbox-2.2]; supported: [vmx-04, vmx-07, vmx-08, vmx-09, vmx-10, vmx-11, vmx-12, vmx-13, vmx-14, vmx-15, vmx-16, vmx-17, vmx-18, vmx-19]. Solution: Open .OVF file and edit       <Info>Virtual hardware requirements for a virtual machine</Info>       <System>         <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>         <vssd:InstanceID>0</vssd:InstanceID>         <vssd:VirtualSystemIdentifier>zabbix_appliance-6.2.7</vssd:VirtualSystemIdentifier>         <vssd:VirtualSystemType> virtualbox-2.2 </vssd:VirtualSystemType>       </System> to  vmx-19       <Info>Virtual hardware requireme...

vSphere HA agent for this host has an error: The vSphere HA agent is not reachable from vCenter Server |Vsphere HA status error | vCenter server 7.0

When you enable Vcenter HA on vsphere7.0 esxi cluster if you see any of the below error: vSphere HA agent for this host has an error: The vSphere HA agent is not reachable from vCenter Server Vsphere HA status error vSphere HA agent cannot be installed or configured  Solution: -Download latest Vmware tools VIB package from:   https://my.vmware.com/group/vmware/downloads/details?downloadGroup=VMTOOLS1125&productId=974&rPId=58693 -winscp to ESXi host the zip file of VIB. -Install the package:  esxcli software vib install -d  "/tmp/VMware-Tools-11.2.5-core-offline-depot-ESXi-all-17337674.zip" -Reboot the Esxi. -Right click on the esxi to do "Reconfigure vSphere HA"