In a setup of a multiple iscsi
disks attached to a Linux host (LVM pools setup), I want to be able to take a snapshot of a specific disk, using Softlayer API
.
How can I know the id or the LUN name of the iscsi device from the Linux device name.
For example - get "SLXXXXXXXXX-XX"
from "/dev/mapper/YYYYYYYYYYYYYYp1"
.
I tried resolving the Iscsi target Ip, but it's possible that different disks have same target ip, so I have to figure out a different solution