Bug 2085442

Summary: [Doc] - Block device Guide - add information about enabling logging of mirroring daemon to file
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: DocumentationAssignee: Anjana Suparna Sriram <asriram>
Documentation sub component: Block Device Guide QA Contact: Manisha Saini <msaini>
Status: NEW --- Docs Contact:
Severity: high    
Priority: unspecified CC: akraj, vereddy
Version: 5.1   
Target Milestone: ---   
Target Release: Backlog   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Vasishta 2022-05-13 11:38:54 UTC
Describe the issue:
We need to add information about enabling log to file for rbd mirroring daemon.

Describe the task you were trying to accomplish:
redirect rbd-mirroring daemon logs to log file

Suggestions for improvement:
We can add a note mentioning that if user wants to redirect rbd-mirror daemon logs to log file which is the default case, user needs to execute following commands
# ceph config set global log_to_file true
# ceph config set global mgr/mirroring/log_to_file 1

Also to configure log rotate won't work on the log file that gets created. https://access.redhat.com/solutions/3523011 has more information on why it doesn't happen.

Document URL:
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/5/html/block_device_guide/index

Chapter/Section Number and Title:
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/5/html/block_device_guide/mirroring-ceph-block-devices

Product Version:
5.x

Environment Details:
NA

Any other versions of this document that also needs this update:
4.x (information on logrotate.d might needs to be changed, it gets configured by cephadm in 5.x)

Additional information: