show omnilock open
Function
The show omnilock open command is used to query information about file open locks.
Format
show omnilock open controller=? [ file_system_id=? ] [ file_id=? ] [ client_ip=? ]
Parameters
Parameter |
Description |
Value |
---|---|---|
file_system_id=? |
File system ID. |
The value is a hexadecimal number, ranging from 0 to FFFFFFFF FFFFFFFF. |
file_id=? |
File ID. |
The value is a hexadecimal number, ranging from 0 to FFFFFFFF FFFFFFFF. |
controller=? |
Controller ID. |
The value format is "XA", "XB", "XC", or "XD". "X" is an integer ranging from 0 to 3, for example, "0A" or "1C". |
client_ip=? |
Client IP address. |
The value cannot be greater than 32 bytes. |
Views
Developer view
Usage Guidelines
None
Example
Query information about file open locks.
developer:/>show omnilock open controller=0A
-------------------------Proxy------------------------
Filesystem ID : 0x0
File ID : 0x3
Reference : 6
Grant Number : 4
Grant Mode : 0x1
Current Mode : 0x1
Status : 0
Flags : 0x1
Event Number : 0
Bits Count : 3 0 0 0 0 0 0 0 0 0 0
Grant Node : Mode(0x0) ID(0xce524eec0241e000) IP(192.168.160.24) Life(3343s)
Grant Node : Mode(0x1) ID(0x836fc9b024d4000) IP(192.168.0.101) Life(2228s)
Grant Node : Mode(0x1) ID(0xf5583a5702a2e000) IP(192.168.170.150) Life(326s)
Grant Node : Mode(0x1) ID(0x66a903ac02ae6000) IP(192.168.170.150) Life(216s)
-------------------------Master-----------------------
Filesystem ID : 0x0
File ID : 0xfa5
Flags : 0x0
Grace Expire : 0x0
Revoke Number : 0
Revoke Status : 0
Migrate Status : 0
Wait Number : 0
Increase Number : 0
Grant Number : 1
Grant Mode : 0x1
Bits Count : 1 0 0 0 0 0 0 0 0 0 0
Grant Node : Node(0) Mode(0x1) Flags(0x0)
-------------------------Proxy------------------------
Filesystem ID : 0x0
File ID : 0xfa5
Reference : 4
Grant Number : 2
Grant Mode : 0x1
Current Mode : 0x1
Status : 0
Flags : 0x1
Event Number : 0
Bits Count : 2 0 0 0 0 0 0 0 0 0 0
Grant Node : Mode(0x1) ID(0x8cd8221f02a85000) IP(192.168.170.150) Life(312s)
Grant Node : Mode(0x1) ID(0xb2edfd102a86000) IP(192.168.170.150) Life(312s)
System Response
The following table describes the parameter meanings.
Parameter |
Meaning |
---|---|
Filesystem ID |
File system ID. |
File ID |
File ID. |
Flags |
Open lock flag. |
Grace Expire |
Silent timeout. |
Revoke Number |
Revoking times of open locks. |
Migrate Status |
Migration status of open locks. |
Revoke Status |
Revoking status of open locks. |
Wait Number |
Number of requests waiting for grant locks. |
Increase Number |
Number of locks for incremental migration. |
Grant Number |
Number of grant locks. |
Grant Mode |
Granting permission. |
Bit Count |
Permission bit count. |
Wait Node |
Wait node. |
Grant Node |
Grant node. |
Reference |
Number of reference counts for locks. |
Current Mode |
Current permission in use. |
Status |
Lock status. |
Event Number |
Number of events. |