Closed exalate-issue-sync[bot] closed 3 years ago
Jonathan Teh commented:
NVMe has Namespace Write Protection (section 8.19 in the NVMe 1.4 spec) but it appears SPDK, 20.10 at least, doesn't support it:
# nvme id-ctrl /dev/nvme0n1 -H NVME Identify Controller: vid : 0 ssvid : 0 sn : 33' ~'~._`o##o> mn : Mayastor NVMe controller fr : 20.10 rab : 6 ieee : 000000 cmic : 0xb [3:3] : 0x1 ANA supported [2:2] : 0 PCI [1:1] : 0x1 Multi Controller [0:0] : 0x1 Multi Port ... nwpc : 0 [2:2] : 0 Permanent Write Protect Not Supported [1:1] : 0 Write Protect Until Power Supply Not Supported [0:0] : 0 No Write Protect and Write Protect Namespace Not Supported
Jonathan Teh commented:
Mounting an XFS filesystem requires the flags ro,norecovery
, even if it was cleanly unmounted:
norecovery The filesystem will be mounted without running log recovery. If the filesystem was not cleanly unmounted, it is likely to be in‐ consistent when mounted in "norecovery" mode. Some files or di‐ rectories may not be accessible because of this. Filesystems mounted "norecovery" must be mounted read-only or the mount will fail.
Origination: MayaData Jira, issue null
Cleanup: Closing manually since the automation of jira<->github synchronisation has been suspended and this issue will receive no further updates.
A snapshot shared over nvmf:
appears as read/write to Linux:
This also feeds through to the Nexus when the snapshot is added as a child of the Nexus and the Nexus is published over nvmf. This can help when mounting some filesystems in a snapshot so that it does not attempt to replay its journal. From mount(5):