Comments (2)
You can do this if you specify the --force flag and the documentation does
describe it:
--size=SIZE
Specify the size (in bytes) of the backed file to be exported by the filesystem. The size may have an optional
suffix 'K' for kilobytes, 'M' for megabytes, 'G' for gigabytes, 'T' for terabytes, 'E' for exabytes, 'Z' for
zettabytes, or 'Y' for yottabytes. s3backer will attempt to auto-detect the block size by reading block number
zero. If this option is not specified, the auto-detected value will be used. If this option is specified but dis-
agrees with the auto-detected value, s3backer will exit with an error unless --force is also given.
Therefore all you need to do to resize a s3backer disk is run s3backer with
--force --size=NEWSIZE, then read and write back the first block.
Whether this is "safe" depends on what you are storing in the backed file.
E.g., most filesystems won't automatically "notice" the new space so you'd have
to do a separate resize operation for the upper layer filesystem.
Original comment by [email protected]
on 22 Oct 2010 at 7:43
- Changed state: WontFix
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from s3backer.
I'm glad to hear that. It is what I figured (as noted above), but like I said,
I don't think the messaging you get from the documentation or the application
is clear, and I think it therefore needs to be updated.
As I noted, when you force a new size on an S3 device, you get a dire warning
about how your data won't read back properly. That's not true at all from the
point of view of the S3 device. If what is meant by all the dire warnings is
that the filesystem built *on top of* the S3 device may have problems, then the
documentation and messages from the program need to be clearer about that,
because there's no way to tell from them that that's what the actual concern is.
And as noted above, you still need to write code to clean extraneous blocks
after shrinking a device.
Thanks,
jik
Original comment by [email protected]
on 22 Oct 2010 at 7:50
from s3backer.
Related Issues (20)
- [enhancement] make holes in cache file for zero blocks with fallocate HOT 8
- [enhancement] zero_cache should write a full block when writing into all-zero block, thus avoiding read-modify-write cycle HOT 3
- [nbd] s3backer isn't creating the /dev/nbdX device HOT 9
- zero_block_cache_size incorrect in stats file HOT 4
- Feature requests changing encryption password HOT 3
- s3backer seems to not work with Swift - special parameters needed? HOT 2
- Question: How to use s3backer with a GCS bucket? HOT 13
- Feature Request: DEBs and RPMs built by github actions when tagging a release HOT 1
- error zeroing blocks: Success HOT 17
- Error 403 leads to I/O errors, no retry is attempted HOT 83
- Upgrade from 1.4.3 HOT 4
- Current time is not updated when a HTTP request is retried HOT 15
- nbdclient fails to connect HOT 4
- Current state of NBD HOT 1
- Please update wiki for nbd HOT 3
- s3backer-nbd does not create /run/s3backer-nbd directory HOT 3
- Timeout on systemctl stop s3backer-nbd.service HOT 6
- Retaining multiple versions of blocks when used with B2 HOT 7
- cache file expanded by fractional block size resulting in error at startup HOT 2
- nbd kit detection, packaging request HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3backer.