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;