Forget the /dev/sd* -- they are evil. Look at the /dev/disk/by-id/ instead. Each iscsi target should have a unique permanent id.If you want a volume to be automatically mounted when y... [by jlehtone]
on 06/06/2012 – Made popular on 06/06/2012
I need to write a script to automatically login to a target and mount the disk corresponding it.
I use iscsiadm to login to the target.But i don't know how to find out the disk corresponding to a certain target. By now the only way i tried is to use /dev/disk/by-patch/ip-xxx-iscsi-partx. It's a little complex.
I'm currently using a Debian Wheezy server with a iSCSI block target "lun0". This target is mounted on my Windows 2008 R2 machine and formated using NTFS. The device is mounted as "D:\DATA" and shared as "\DATA".
iSCSI is a block level Protocol for sharing RAW Storage Devices over TCP/IP Networks, Sharing and accessing Storage over iSCSI, can be used with existing IP and Ethernet networks such as NICs, Switched, Routers etc. iSCSI target is a remote hard disk presented from an remote iSCSI server (or)...
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
I don't know if I'm missing something but when I'm mounting additional iSCSI volumes to a said server to add additional storage to a server I'm not seeing a way to mount the volume after running a discovery command.
The reasoning I want to be able to do this is that we're running an application that would require downtime everytime we add additional iSCSI volumes to this server.
The environment is a CentOS 6.2 server running on a VM host with a HP P2000 iSCSI disk system attached via Ethernet (dedicated iSCSI network). The P2000 has two controllers A & B and 12 drives. Co... [by rarebearnm]