use of com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec in project coprhd-controller by CoprHD.
the class FindMountPointsForVolumes method executeTask.
@Override
public Void executeTask() throws Exception {
ListMountPointsCommand command = new ListMountPointsCommand();
Map<String, MountPoint> results = executeCommand(command, SHORT_TIMEOUT);
for (VolumeSpec volume : volumes) {
volume.mountPoint = AixUtils.getMountPoint(hostId, results, volume.viprVolume);
}
return null;
}
use of com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec in project coprhd-controller by CoprHD.
the class FindMultiPathEntriesForMountPoint method executeTask.
@Override
public Void executeTask() throws Exception {
List<MultiPathDevice> multiPathDevices = executeCommand(new MultiPathInquiry());
for (VolumeSpec volume : volumes) {
volume.multipathEntries = Lists.newArrayList();
String device = volume.mountPoint.getDevice();
for (MultiPathDevice multiPathDevice : multiPathDevices) {
if (StringUtils.equals(device, multiPathDevice.getDevice())) {
volume.multipathEntries.add(multiPathDevice);
break;
}
}
if (volume.multipathEntries.size() == 0) {
warn("No MultiPath devices for %s", volume.mountPoint.getPath());
}
}
return null;
}
use of com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec in project coprhd-controller by CoprHD.
the class FindPowerPathEntriesForMountPoint method executeTask.
@Override
public Void executeTask() throws Exception {
List<PowerPathDevice> powerPathDevices = executeCommand(new PowerPathInquiry());
for (VolumeSpec volume : volumes) {
volume.powerpathDevices = Lists.newArrayList();
String device = volume.mountPoint.getDevice();
for (PowerPathDevice powerpathDevice : powerPathDevices) {
if (StringUtils.equals(device, powerpathDevice.getDevice())) {
volume.powerpathDevices.add(powerpathDevice);
break;
}
}
if (volume.powerpathDevices.size() == 0) {
warn("No PowerPath devices for %s", volume.mountPoint.getPath());
}
}
return null;
}
Aggregations