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

Resize NVMe sector size on snap-02 #1139

Open
Firefishy opened this issue Aug 8, 2024 · 0 comments
Open

Resize NVMe sector size on snap-02 #1139

Firefishy opened this issue Aug 8, 2024 · 0 comments
Labels
location:ucl The data centre sponsored by UCL

Comments

@Firefishy
Copy link
Member

Firefishy commented Aug 8, 2024

The NVMe disks in snap-02 are using 512 sectors instead of 4096 byte sectors. The sector size should likely be changed if boosts performance.

LBA Format  0 : Metadata Size: 0   bytes - Data Size: 512 bytes - Relative Performance: 0 Best (in use)
LBA Format  1 : Metadata Size: 0   bytes - Data Size: 4096 bytes - Relative Performance: 0 Best

Changing the disk sector size formats (deletes contents) the disk, the sector size needs to be carefully coordinated with mdadm.

Outline steps:

  1. Confirm array idle via /proc/mdstats
  2. mdadm --fail
  3. mdadm --remove
  4. nvme format --lbaf=1
  5. mdadm --add

(repeat disk by disk across all 9 disks)

@Firefishy Firefishy added the location:ucl The data centre sponsored by UCL label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
location:ucl The data centre sponsored by UCL
Projects
None yet
Development

No branches or pull requests

1 participant