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 am trying to configure my HP MSA 2012i ( http://h10010.www1.hp.com/wwpc/il/en/sm/WF06b/12169-304616-241493-241493... ) such that every disk is a vdisk and every vdisk is a volume. Each volume shall be accessible using iscsi. So each volume shall be a iscsi target. This is not a raid, I rather want to use the single disks.
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! ]]