[LU-15873] Make mounting with "-o rdonly_dev" work Created: 19/May/22 Updated: 20/Jun/23 Resolved: 20/Apr/23 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Arshad Hussain | Assignee: | Arshad Hussain |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
Make target mounting with "-o rdonly_dev" work. "rdonly_dev" currently does not work. While the "rdonly_dev" returns "Operation not supported" from OSD. It is a simple flag check which is doing the returning, removing the check seems to work. Mounting with "rdonly_dev" # umount /mnt/lustre-mds1 # mount.lustre /dev/mapper/mds1_flakey /mnt/lustre-mds1 -o rdonly_dev mount.lustre: mount /dev/mapper/mds1_flakey at /mnt/lustre-mds1 failed: Operation not supported Logs: (obd_config.c:774:class_setup()) setup lustre-MDT0000-osd failed (-95) (obd_mount.c:200:lustre_start_simple()) lustre-MDT0000-osd setup error -95 (obd_mount_server.c:1993:server_fill_super()) Unable to start osd on /dev/mapper/mds1_flakey: -95 (super25.c:176:lustre_fill_super()) llite: Unable to mount <unknown>: rc = -95
|
| Comments |
| Comment by Andreas Dilger [ 20/May/22 ] |
The reason this returns "Operation not supported" is because this feature was removed from the code (it used to be implemented as a kernel patch), and replaced by "dm-flakey" to allow discarding writes to the filesystem. I don't think that should relate to implementing "-o ro" at all. |
| Comment by Gerrit Updater [ 20/May/22 ] |
|
|
| Comment by Arshad Hussain [ 20/May/22 ] |
|
...I don't think that should relate to implementing "-o ro" at all. Understood. Thanks. |
| Comment by Gerrit Updater [ 01/Sep/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/48095/ |
| Comment by Gerrit Updater [ 21/Mar/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48096/ |
| Comment by Gerrit Updater [ 21/Mar/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48098/ |
| Comment by Gerrit Updater [ 20/Jun/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48097/ |