<div dir="ltr"><div><div>Hi list,<br></div><div>I have a scenario where i want to clone production data to developer vm:s:<br><br></div><div>1. Create a snapshot from a direct LUN from a &quot;production&quot; vm in a ISCSI SAN from which i take snapshots (built in functionality in the disk array.)<br></div><div>2. Take the snapshot and attach it as a direct LUN in a &quot;developer&quot; vm in ovirt.<br></div><div>3. Mount it and let the developers work with the data.</div><div>4. After some time the developer says they want to refresh the data.<br></div><div>5. Unmont the disk and deattach it from the &quot;developer&quot; vm.<br></div><div>6. Remove it from multipath and remove the iscsi sessions. <br></div><div>7. Repeat all previous steps when developer needs &quot;fresh&quot; data.<br><br></div><div>I have succeeded with most of the steps above using the ovirt API.<br></div><div>However step 6 is not done automatically when i remove the direct LUN from ovirt?<br></div><div>If i don&#39;t do this step manually i end up with a syslog with error messages from multipath and stale iscsi session which potentially can make ovirt storage fail.<br><br></div><div>Here is my questions:<br><br></div><div>Does anybod know:<br><br></div><div>- Why is:nt there an API and a button in webui to remove the multipath maps and iscsi sessions?<br><br></div><div>- Does anybody here has a suggestion of how to do step 6 from a script? (a hook maybe?)<br><br></div><div>Thanks!<br></div><div>/Christian<br></div><div><br></div></div></div>