From a4dd8b7b22fc964f414578219894d0d6f8140328 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 10 May 2011 14:27:50 +0000 Subject: [PATCH] Fix mkvm with up to three ide drives git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 41c84ef70..cb0b9da7d 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -2867,6 +2867,12 @@ sub create_storage_devs { while ($usedideunits{$unitnum}) { $unitnum++; } + if ($unitnum == 2) { + $idecontrollerkey++; + $ideunitnum=1; + $unitnum=1; + $controllerkey=$idecontrollerkey; + } $usedideunits{$unitnum}=1; } else { $controllerkey = $scsicontrollerkey;