fid stat
Displays statistics for HPE Ezmeral Data Fabric Database or file system components that are identified by a FID.
Only the root user and the MAPR_USER user (user name under which Data Fabric services runs) have permissions to run this command.
NOTE
This command is similar to the UNIX stat
command.Syntax
- CLI
-
/opt/mapr/bin/maprcli fid stat [ -cluster <cluster name> ] -fid <file identifier for the element>
- REST
- N/A
Parameters
Parameter | Description |
---|---|
cluster |
The cluster on which to run the command. If this parameter is omitted, the command is run on the same cluster where it is issued. In multi-cluster contexts, you can use this parameter to specify a different cluster on which to run the command. |
fid |
The file identifier for the element (region, kvstore, etc.) for which
you want detailed information. The output of the maprcli table region
list command lists the FIDs for the regions of the
table. |
Output Fields
Columns | Description |
---|---|
atime | The last access time for this FID. For more information, see the
|
compression | The compression setting, either on or
off . If on , this parameter displays the
compression type. |
deleteFlags | An internal delete flag that is set on the FID for transactions
involving multiple nodes. If deleted, this parameter denotes the deletion
type, either self or recursive
delete . |
diskflush | Indicates whether persistent flush is enabled (true ) or
not (false ) for this inode. |
gid | The group ID |
lblocks | Number of logical B-Tree blocks |
mode | The UNIX style permission mode bits for the FID |
mtime | Last modification time |
nblocks | Total number of B-Tree blocks used |
networkencryption | Indicates whether wire encryption is enabled or disabled |
nlevels | Number of B-Tree levels |
nlink | Number of links to this inode |
parent | The parent FID |
size | The size of the FID. Depending on the type of FID, it can be the actual size (in bytes), or the number of entries |
subtype | The subtype of the FID |
type | The type of the FID. For example, regular file, dir, filelet, kvstore, fidmap etc. |
uid | The user ID of the owner |
version | The current version of the FID. |
xattrInum | The extended attribute of the FID |
Example
Displays statistics for a specified FID:
[user@hostname ~]$ maprcli fid stat -fid 2062.32.131252 -json
{
"timestamp":1586935733623,
"timeofday":"2020-04-15 12:28:53.623 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"type":"FTDirectory",
"subtype":"FSTInval",
"parent":"<parentCID>.35.131200",
"size":1,
"nblocks":1,
"lblocks":0,
"compression":"off",
"deleteFlags":"DeleteTypeNone",
"atime":1583751630,
"mtime":1583751630,
"mode":"755",
"uid":1000,
"gid":1000,
"nlink":3,
"xattrInum":0,
"version":1048589,
"networkencryption":true,
"diskflush":false,
"nlevels":1
}
]
}