Bug 2005267

Summary: [Doc][RBD][block_device_guide]:Decreasing block image size requires --allow-shrink flag
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Chaithra <ckulal>
Component: DocumentationAssignee: Anjana Suparna Sriram <asriram>
Documentation sub component: Block Device Guide QA Contact: Veera Raghava Reddy <vereddy>
Status: NEW --- Docs Contact:
Severity: high    
Priority: unspecified CC: hyelloji, kdreyer, rmandyam
Version: 5.0Keywords: Documentation, NoDocsQEReview
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 Chaithra 2021-09-17 09:43:12 UTC
Describe the issue:

Decreasing block image size requires --allow-shrink flag

2.7. Resizing a block device image:

	Given command can only be used to increase the image size
        rbd resize --image IMAGE_NAME --size SIZE
        rbd resize --image POOL_NAME/IMAGE_NAME --size SIZE

        #rbd create image1 --size 1024 --pool pool1						
	#rbd resize --image pool1/image1 --size 512
         rbd: shrinking an image is only allowed with the --allow-shrink flag