Search in sources :

Example 1 with PowerPathInquiry

use of com.emc.aix.command.PowerPathInquiry 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;
}
Also used : VolumeSpec(com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec) PowerPathDevice(com.iwave.ext.linux.model.PowerPathDevice) PowerPathInquiry(com.emc.aix.command.PowerPathInquiry)

Aggregations

PowerPathInquiry (com.emc.aix.command.PowerPathInquiry)1 VolumeSpec (com.emc.sa.service.aix.UnmountBlockVolumeHelper.VolumeSpec)1 PowerPathDevice (com.iwave.ext.linux.model.PowerPathDevice)1