Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase minimum disk size to 5 GiB and define at run-time #2308 #2360

Conversation

phillxnet
Copy link
Member

In a number of trials with btrfs, especially during raid changes, it was found that a practical minimum to allow for basic experimentation was 5GiB. Currently we ignore all devices below 1 GiB.

Fixes #2308
@FroggyFlox I'm applying this one to testing as a proof of concept to kick off our new testing branch and to help test modification required to our production back-end.

This change increases our 'ignore devices below size' to 5 GiB.

Includes:

  • Moving this definition away from build-time Django settings to plain run-time: allowing for user modification if need be.
  • Explanatory code comments and upstream btrfs wiki references.
  • Note/reference on recommended non mixed mode minimum size as 16 GiB+.

In a number of trials with btrfs, especially during raid changes, it was
found that a practical minimum to allow for basic experimentation was
5GiB. Currently we ignore all devices below 1 GiB.

This change increases our 'ignore devices below size' to 5 GiB.

Includes:
- Moving this definition away from build-time Django settings to plain
run-time: allowing for user modification if need be.
- Explanatory code comments and upstream btrfs wiki references.
- Note/reference on recommended non mixed mode minimum size as 16 GiB+.
@phillxnet phillxnet changed the title Increase minimum disk size to 5GiB and define at run-time #2308 Increase minimum disk size to 5 GiB and define at run-time #2308 Mar 11, 2022
@phillxnet
Copy link
Member Author

Tested to successfully ignore a 4 GB volume from the Web-UI that was otherwise attached as normal.

rleap15-3:~ # lsblk -P -p -o NAME,MODEL,SERIAL,SIZE,TRAN,VENDOR,HCTL,TYPE,FSTYPE,LABEL,UUID | grep "\"4G"
NAME="/dev/sdb" MODEL="QEMU_HARDDISK" SERIAL="QM00003" SIZE="4G" TRAN="sata" VENDOR="ATA     " HCTL="2:0:0:0" TYPE="disk" FSTYPE="" LABEL="" UUID=""

@phillxnet phillxnet merged commit 83be5bf into rockstor:testing Apr 7, 2022
@phillxnet phillxnet deleted the 2308_Increase_minimum_recognised_disk_size_to_5GB_and_define_at_run-time branch April 7, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant