Коды ошибок хранилища в полях LAST_ERR и LAST_LINK_ERR
Справочник кодов ошибок, отображаемых в полях LAST_ERR и LAST_LINK_ERR
вывода служебных команд хранилища (например, vstorage stat, vstorage top).
Числовое значение из вывода ищите в перечислении ниже; комментарии приведены
из исходного кода без перевода.
PCS_ERR_OK = 0, /* No error */
PCS_ERR_NOMEM = 1, /* Out of memory: malloc failure */
PCS_ERR_PROTOCOL = 2, /* Fatal protocol error. Some condition, which should happen
* only if we have some bug in protocol implementation */
PCS_ERR_AUTH = 3, /* Authentication failure due to wrong credentials */
PCS_ERR_NET = 4, /* Misc network error */
PCS_ERR_NOSPACE = 5, /* ENOSPC/EDQUOT while local file io */
PCS_ERR_IO = 6, /* Misc error while local file io */
PCS_ERR_LOST_LOCK = 7, /* CN did not get response from MDS for lease update,
* it is generated by CN itself, sort of self-fencing
* Probably, useless and should be removed.*/
PCS_ERR_NOT_FOUND = 8, /* Requested object not found */
PCS_ERR_INTERRUPTED = 9, /* The operation was interrupted, should be retried */
PCS_ERR_NET_ABORT = 10, /* Message dropped due to abort of network connection */
PCS_ERR_CONNECT_TIMEOUT = 11, /* Failed connect() */
PCS_ERR_AUTH_TIMEOUT = 12, /* Authentication failure due to timeout */
PCS_ERR_RESPONSE_TIMEOUT = 13, /* Peer did not respond or did not hold deadline */
PCS_ERR_WRITE_TIMEOUT = 14, /* Socket write() failed, peer is stuck or network is broken */
PCS_ERR_NAME_RESOLUTION = 15, /* DNS hostname resolution error */
PCS_ERR_CANCEL_REQUEST = 18, /* Request was cancelled by user */
PCS_ERR_CANCEL_IO = 19, /* IO request was cancelled */
PCS_ERR_LEASE_REQUIRED = 20, /* Lease required */
PCS_ERR_LEASE_EXPIRED = 21, /* Lease is expired */
PCS_ERR_LEASE_CONFLICT = 22, /* Lease request conflicts with another lease */
PCS_ERR_INV_PATH = 23, /* The path is invalid. Usually means an attempt
* to make a directory a subdirectory of itself. */
PCS_ERR_NOT_DIR = 24, /* Attempt to read non-directory */
PCS_ERR_IS_DIR = 25, /* Attempt to access directory (resize/io) */
PCS_ERR_NON_EMPTY_DIR = 26, /* Attempt to rename/delete non empty directory */
PCS_ERR_ZERO_CHUNK = 27, /* The requested chunk was not written yet and contains zero data */
PCS_ERR_INVALID = 29, /* Object is invalid */
PCS_ERR_INV_PARAMS = 30, /* Invalid parameters */
PCS_ERR_NO_ID = 31, /* Request from the client without ID */
PCS_ERR_INVALID_ID = 32, /* The client or server ID is invalid or banned */
PCS_ERR_NORES = 33, /* Not enough resources (too many requests) */
PCS_ERR_UNAVAIL = 34, /* Service unavailable */
PCS_ERR_BAD_CLUSTER = 35, /* The cluster id specified by client is invalid */
PCS_ERR_READONLY = 36, /* Invalid operation on read-only object */
PCS_ERR_PERM = 37, /* Permission denied */
PCS_ERR_UNSUPPORTED = 38, /* Operation is not supported */
PCS_ERR_TEMP_UNAVAIL = 40, /* The resource is temporary unavailable */
PCS_ERR_INTEGRITY = 41, /* Not enough alive replicas available */
PCS_ERR_INTEGRITY_FAIL = 42, /* Fatal. Returned by MDS to client, when it is known that
* some unsynced data could be lost. */
PCS_ERR_NO_STORAGE = 50, /* The number of chunk servers in cluster is
* less than the required number of replicas */
PCS_ERR_NOT_ALLOWED = 51, /* Operation is not allowed due to licensing limitations */
PCS_ERR_IO_HOLE = 52, /* Read operation encountered a hole */
PCS_ERR_CFG_VERSION = 60, /* Configuration version mismatch */
PCS_ERR_CLNT_VERSION = 61, /* Client version is incompatible with server version (outdated) */
PCS_ERR_EXISTS = 70, /* Specified object already exists */
PCS_ERR_EPOCH_MISMATCH = 72, /* Object epoch mismatch due to concurrent update */
PCS_ERR_GR_EPOCH_INVALID = 73, /* Object geo replication epoch invalid */
PCS_ERR_NO_DIR = 75, /* Name directory does not exists */
PCS_ERR_DIR_INST_VER = 76, /* Name instance version mismatch */
PCS_ERR_INST_EXISTS = 77, /* The same instance of the object already exists */
PCS_ERR_INST_OUTDATED = 78, /* The newer version of the object already exists */
PCS_ERR_INST_MISMATCH = 79, /* The instance version of the object does not match the requested one */
PCS_ERR_CONTEXT_LOST = 80, /* Operation context is lost on server restart */
PCS_ERR_NS_LEASE_BUSY = 81, /* Lease wasn't acquired due to other active lease */
PCS_ERR_NS_LEASE_INVALID = 82, /* Active lease doesn't have reference with id provided in the request */
PCS_ERR_NS_LOCK_EXPIRED = 83, /* Lock at object's name NS has already expired */
PCS_ERR_CSD_STALE_MAP = 100, /* Old map (or no map) at CS */
PCS_ERR_CSD_RO_MAP = 101, /* Write request with read-only map */
PCS_ERR_CSD_WR_IN_PROGR = 102, /* Read only map is rejected due to write requests being processed */
PCS_ERR_CSD_REPLICATING = 103, /* Attempt to read from unfinished replica */
PCS_ERR_CSD_STALLED_REPL = 104, /* Relplication stalled */
PCS_ERR_CANCEL_KEEPWAIT = 105, /* IO request was canceled and redirected to another CS */
PCS_ERR_CSD_ILL = 106, /* CS is ill and refusing to process request */
PCS_ERR_CSD_LACKING = 110, /* Not enough CS servers available */
PCS_ERR_CSD_DROPPED = 120, /* The CS server was dropped by administrator */
PCS_ERR_MDS_NOT_MASTER = 200, /* The target MDS is not current master */
PCS_ERR_MDS_EXIST = 201, /* The MDS with such id already exist in cluster */
PCS_ERR_MDS_RM_TOOMANY = 202, /* Removing this MDS will make the cluster unusable */
PCS_ERR_MDS_KVSTORE_GEN_OUTDATED = 203, /* Requested generation is too old */
PCS_ERR_LICENSE_LIMIT = 300, /* Operation can't be completed due to license limitations */
PCS_ERR_NO_LICENSE = 301, /* No active license */
PCS_ERR_SSL = 400, /* SSL protocol error */
PCS_ERR_SSL_CERTIFICATE_REVOKED = 401, /* Certificate revoked */
PCS_ERR_SSL_CERTIFICATE_EXPIRED = 402, /* Certificate expired */
PCS_ERR_SSL_UNKNOWN_CA = 403, /* Certificate issued by a CA the peer does not know and trust */
PCS_ERR_PEER_CERTIFICATE_REJECTED = 404, /* The peer certificate has failed the verification */
PCS_ERR_STOR_DATA_CRC_MISMATCH = 500, /* Data page checksum mismatch */
PCS_ERR_STOR_LSM_CRC_MISMATCH = 501, /* LSM page checksum mismatch */
PCS_ERR_STOR_CORRUPT_JOURNAL = 502, /* Jorunal has unrecoverable corruption */
PCS_ERR_STOR_CORRUPT_LSM = 503, /* LSM content has logical corruptions */
PCS_ERR_STOR_JOURNAL_ZONE_OVERFLOW = 504, /* Journal zone has overflowed (returned
* only by journal write functions) */
PCS_ERR_UNKNOWN = 4095, /* Unknown error */
PCS_ERR_MAX = PCS_ERR_UNKNOWN