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-03 #1141

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

Resize NVMe sector size on snap-03 #1141

Firefishy opened this issue Aug 8, 2024 · 0 comments
Labels
location:dublin Equinix DB4 data centre

Comments

@Firefishy
Copy link
Member

Firefishy commented Aug 8, 2024

The NVMe disks in snap-03 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: 0x2 Good (in use)
LBA Format  1 : Metadata Size: 8   bytes - Data Size: 512 bytes - Relative Performance: 0x2 Good
LBA Format  2 : Metadata Size: 0   bytes - Data Size: 4096 bytes - Relative Performance: 0x2 Good
LBA Format  3 : Metadata Size: 8   bytes - Data Size: 4096 bytes - Relative Performance: 0x2 Good
LBA Format  4 : Metadata Size: 64  bytes - Data Size: 4096 bytes - Relative Performance: 0x2 Good

Changing the disk sector size formats 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=2
  5. mdadm --add

(repeat disk by disk across all disks)

@tomhughes tomhughes added the location:dublin Equinix DB4 data centre label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
location:dublin Equinix DB4 data centre
Projects
None yet
Development

No branches or pull requests

2 participants