You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-462
This commit is contained in:
@@ -5967,11 +5967,22 @@ namespace oam
|
||||
|
||||
cout << " Create AWS Volume for UM #" << itoa(moduleID) << endl;
|
||||
|
||||
volumeName = createEC2Volume(UMVolumeSize, "um");
|
||||
if ( volumeName == "failed" ) {
|
||||
writeLog("addModule: create volume failed", LOG_TYPE_CRITICAL);
|
||||
exceptionControl("addUMdisk", API_FAILURE);
|
||||
}
|
||||
int retry = 0;
|
||||
for ( ; retry < 5 ; retry++ )
|
||||
{
|
||||
volumeName = createEC2Volume(UMVolumeSize, "um");
|
||||
|
||||
if ( volumeName == "failed" || volumeName.empty() )
|
||||
retry = retry;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if ( retry >= 5 )
|
||||
{
|
||||
cout << " *** ERROR: Failed to create a Volume for um1 " << moduleID << endl;
|
||||
exceptionControl("addUMdisk", API_FAILURE);
|
||||
}
|
||||
|
||||
//attach and format volumes
|
||||
device = "/dev/sdf";
|
||||
@@ -5979,11 +5990,22 @@ namespace oam
|
||||
string localInstance = getEC2LocalInstance();
|
||||
|
||||
//attach volumes to local instance
|
||||
writeLog("addUMdisk - Attach new Volume to local instance: " + volumeName, LOG_TYPE_DEBUG);
|
||||
if (!attachEC2Volume(volumeName, device, localInstance)) {
|
||||
writeLog("addUMdisk: volume failed to attach to local instance", LOG_TYPE_CRITICAL);
|
||||
exceptionControl("addUMdisk", API_FAILURE);
|
||||
}
|
||||
writeLog("addUMdisk - Attach new Volume to local instance: " + volumeName, LOG_TYPE_DEBUG);
|
||||
|
||||
retry = 0;
|
||||
for ( ; retry < 5 ; retry++ )
|
||||
{
|
||||
if (!attachEC2Volume(volumeName, device, localInstance))
|
||||
detachEC2Volume(volumeName);
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if ( retry >= 5 )
|
||||
{
|
||||
cout << " *** ERROR: Volume " << volumeName << " failed to attach to local instance" << endl;
|
||||
exceptionControl("addUMdisk", API_FAILURE);
|
||||
}
|
||||
|
||||
//format attached volume
|
||||
writeLog("addUMdisk - Format new Volume for: " + volumeName, LOG_TYPE_DEBUG);
|
||||
|
Reference in New Issue
Block a user