Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
HDDS Acadia
Description
This Jira proposes the following:
- Implement HDDSVolume to encompass VolumeInfo along with other HDDS specific fields.
- VolumeInfo container disk specific information such as capacity, usage, storageType. HddsVolume has hdds specific fields for volume such as VolumeState, VolumeStats (will be added later).
- Write volume level Version file
- clusterID, storageID, datanodeUUID, creationTime and layoutVersion.
- Read Version file while instantiating HDDSVolumes.
- When the volume Version file already exists (for example, when a DN is restarted), then the version file is read for the stored clusterID, datanodeUuid, lahyoutVersion etc. Some checks will be performed to verify the sanity of the volume.
- When a fresh Datanode is started, the Version file is not written to the volume uptill the clusterID is received from the SCM.