A storage device is marked as "Down" when it cannot correctly gain the ob state of Mogile Service by the deviceChecker script.
To identify the issue:
- Check the log of deviceChecker script:
grep "local WRITEABLE=" /var/log/osdp/storage-check.log* | sort -u | head -1 # If there is any matched string, that means it cannot get the status correctly from this moment. # example matched string: storage-check.log-20160906:[Local][2016-09-05T08:26:03] local WRITEABLE=
- Check the Storage Management page on the Admin portal if the error icon shows up beside the storage device.
To resolve the issue:
- Apply the SSFE 3.2 EP-2 package to fix it. You can download it by clicking on this link.
- Make the storage device "Alive" in the Mogile File System:
# Get the current status of storage devices
mogadm device list# Example:
# osdp-store1 [1]: alive
# used(G) free(G) total(G)
# dev11: down 5.652 61.249 66.901# Mark a device as alive
# mogadm device mark Mark a device as {alive,dead,down,drain,readonly}
# Numeric devid to modify.
# Hostname of device
# One of {alive,dead,down,drain,readonly}
mogadm device mark osdp-store1 11 alive# Check the status again
mogadm device list# Example:
# osdp-store1 [1]: alive
# used(G) free(G) total(G)
# dev11: alive 5.652 61.249 66.901 - Update the device's mysql status:
# Get the current status of storage devices
mysql -uroot -psafesync osdp -e "select * from devices_map\G";# Example:
# *************************** 1. row ***************************
# device_id: 1
# nic_id: 0
# appliance_id: 1
# status: down
# created: 2016-06-27 07:34:14
# accessed: 2016-09-08 07:57:02# Mark a device as alive
mysql -uroot -psafesync osdp -e "update devices_map set status='alive' where device_id=1\G";# Check the status again
mysql -uroot -psafesync osdp -e "select * from devices_map\G";# Example:
# *************************** 1. row ***************************
# device_id: 1
# nic_id: 0
# appliance_id: 1
# status: alive
# created: 2016-06-27 07:34:14
# accessed: 2016-09-08 07:57:02 - Check the Storage Management page on the Admin portal if the status is back to normal. Click the Refresh button.