Bug 2312545

Summary: mgr/volumes: add earmarking for subvol
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: avan <athakkar>
Component: CephFSAssignee: avan <athakkar>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0CC: akraj, ceph-eng-bugs, cephqe-warriors, rpollack, tserlin, vereddy
Target Milestone: ---   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.1.1-49.el9cp Doc Type: Enhancement
Doc Text:
.New support for earmarking subvolumes Previously, the Ceph storage system did not support a mixed protocol being used within the same subvolume. Attempting to use a mixed protocol could lead to data corruption. With this enhancement, subvolumes have protocol isolation. The isolation prevents data integrity issues and reduces the complexity of managing multi-protocol environments, such as SMB and NFS.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-25 09:11:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2317218    

Description avan 2024-09-16 12:17:49 UTC
Purpose:
- To prevent data corruption and ensure protocol compatibility, subvolumes  must be restricted to a single protocol scope—either NFS-ganesha or SMB. Currently, our system does not support mixed protocol use within the same subvolume and attempting to do so could lead to data corruption.

Solution:
- Implemented earmarking functionality for subvolumes  upon creation, ensuring that they do not share the same subvolume to avoid data corruption due to unsupported mixed protocol use.
- Added commands to set get/set/rm earmark from a given subvolume

Comment 1 Storage PM bot 2024-09-16 12:18:00 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 10 errata-xmlrpc 2024-11-25 09:11:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 8.0 security, bug fix, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2024:10216