Other Partition is not aligned warning

When running the following commands on mfsBSD 13.1, no warnings appear:

Code:
gpart create -s gpt nvd0
gpart add -i 1 -b 40 -s 512k -t freebsd-boot nvd0
gpart add -i 2 -a 1m -s 16G -t freebsd-swap nvd0
gpart add -i 3 -a 1m -t freebsd-zfs nvd0

However, executing similar commands (nvd replaced by nda) on mfsBSD 14.2:

Code:
gpart create -s gpt nda0
gpart add -i 1 -b 40 -s 512k -t freebsd-boot nda0
gpart add -i 2 -a 1m -s 16G -t freebsd-swap nda0
gpart add -i 3 -a 1m -t freebsd-zfs nda0

results in the following warning:

Code:
nda0p1 added, but partition is not aligned on 131072 bytes

Here is the partition layout which is the same on mfsBSD and 13.1 and mfsBSD 14.2:

Code:
=>        40  7501476448  nda0  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)

I understand that this warning does not impact performance, but did something change between versions 13.1 and 14.2 that introduced this alignment warning?
 
Also to add something I just noticed:

In mfsBSD 13.1 the command gpart backup nda0 | gpart restore -F nda1 creates the same partition layout:

Code:
=>        40  7501476448  nda0  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)

=>        40  7501476448  nda1  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)

But the same command in mfsBSD 14.2 creates this layout:

Code:
=>        40  7501476448  nda0  GPT  (3.5T)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         648        - free -  (324K)

=>        34  7501476461  nda1  GPT  (3.5T)
          34           6        - free -  (3.0K)
          40        1024     1  freebsd-boot  (512K)
        1064         984        - free -  (492K)
        2048    33554432     2  freebsd-swap  (16G)
    33556480  7467919360     3  freebsd-zfs  (3.5T)
  7501475840         655        - free -  (328K)
 
The difference is that it creates some free space in the beginning and less free space at the end.

But gpart backup command shows the same output:

Code:
 gpart backup nda0
GPT 128
1   freebsd-boot         40       1024
2   freebsd-swap       2048   33554432
3    freebsd-zfs   33556480 7467919360

gpart backup nda1
GPT 128
1   freebsd-boot         40       1024
2   freebsd-swap       2048   33554432
3    freebsd-zfs   33556480 7467919360
 
Back
Top