I just added an additiional drive to my raidz2 pool and TN didn't create a part1 and part2

sde only has on partition and all the others have 1 and 2. is this going to cause a problem? I added it though the gui.
Thanks
Rob
Version: ElectricEel-24.10.2.1

lsblk -f
NAME   FSTYPE            FSVER LABEL         UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                              
├─sda1                                                                                           
└─sda2 zfs_member        5000  boot-pool     10474437644177042893                                
sdb                                                                                              
├─sdb1 linux_raid_member 1.2   freenas:swap1 306e5cb8-3a2b-1e18-082d-d1f1db720025                
└─sdb2 zfs_member        5000  new-tank      10581997627745921799                                
sdc                                                                                              
├─sdc1 linux_raid_member 1.2   swap0         c6a21dcd-f11a-a8ae-b720-3e883ce9f170                
└─sdc2 zfs_member        5000  new-tank      10581997627745921799                                
sdd                                                                                              
├─sdd1 linux_raid_member 1.2   swap0         c6a21dcd-f11a-a8ae-b720-3e883ce9f170                
└─sdd2 zfs_member        5000  new-tank      10581997627745921799                                
sde                                                                                              
└─sde1 zfs_member        5000  new-tank      10581997627745921799                                
sdf                                                                                              
├─sdf1 linux_raid_member 1.2   swap0         c6a21dcd-f11a-a8ae-b720-3e883ce9f170                
└─sdf2 zfs_member        5000  new-tank      10581997627745921799                                
sdg                                                                                              
├─sdg1                                                                                           
└─sdg2 zfs_member        5000  new-tank      10581997627745921799                                
sdh                                                                                              
├─sdh1 linux_raid_member 1.2   freenas:swap1 306e5cb8-3a2b-1e18-082d-d1f1db720025                
└─sdh2 zfs_member        5000  new-tank      10581997627745921799                                
sdi                                                                                              
sr0                                                                     

Shouldn’t cause a problem. TrueNAS no longer uses swap so why create swap partitions?

Depending the version you were running when the drive was added, it could be an issue if no padding space was left to account for possible replacement by a marginally smaller drive.
Check partition boundaries.

1 Like

The adding of a swap partition buffer looks to come back under Fangtooth, per Jira

https://ixsystems.atlassian.net/browse/NAS-134309

That change, which has already landed in Fangtooth, leaves a buffer of up to 2 GiB. No physical partition is created.

EDIT: The letter “J” for your default avatar, but the name “SmallBarky” is the world’s greatest mystery.

@Winnielinnie, any thoughts as to what I should do? I always wondered why that space was there. Sounds like I may have gotten stuck in a odd spot. If they are adding that back, it must be for a reason.

You should be fine. It is just changes from when swap and swap partitions were dropped in Scale. The ‘buffer’ fix is for when you try to replace a hard drive and the new drive is slightly smaller even if they both claim the same size in Tb. There have been instances within the same manufacturer and model of size changes.

1 Like

Thanks I was trying to fix this mismatch

  pool: new-tank
 state: ONLINE
  scan: scrub repaired 0B in 01:05:15 with 0 errors on Thu Jun 26 15:46:43 2025
expand: expanded raidz2-0 copied 8.17T in 03:06:38, on Thu Jun 26 14:41:28 2025
config:

	NAME                                      STATE     READ WRITE CKSUM
	new-tank                                  ONLINE       0     0     0
	  raidz2-0                                ONLINE       0     0     0
	    sdh2                                  ONLINE       0     0     0
	    edcd3e74-621b-4d00-837d-dd895fd6a51a  ONLINE       0     0     0
	    sdf2                                  ONLINE       0     0     0
	    sdd2                                  ONLINE       0     0     0
	    sdc2                                  ONLINE       0     0     0
	    sdb2                                  ONLINE       0     0     0
	    727d67bc-00f6-4a82-99ac-e9773239a744  ONLINE       0     0     0
With the following and noticed the partition difference:
# Suggest replacement for sdh2:
zpool replace new-tank sdh2 /dev/disk/by-id/ata-INTEL_SSDSC2KB019T8_PHYF916500TS1P9DGN-part2

# Suggest replacement for edcd3e74-621b-4d00-837d-dd895fd6a51a:
zpool replace new-tank edcd3e74-621b-4d00-837d-dd895fd6a51a /dev/disk/by-id/ata-SAMSUNG_MZ7LM1T9HCJM-00003_S1YKNXAH112010-part2

# Suggest replacement for sdf2:
zpool replace new-tank sdf2 /dev/disk/by-id/ata-INTEL_SSDSC2KB019T8_PHYF917103Y41P9DGN-part2

# Suggest replacement for sdd2:
zpool replace new-tank sdd2 /dev/disk/by-id/ata-INTEL_SSDSC2KB019T8_PHYF0200052W1P9DGN-part2

# Suggest replacement for sdc2:
zpool replace new-tank sdc2 /dev/disk/by-id/ata-INTEL_SSDSC2KB019T8_PHYF917101HC1P9DGN-part2

# Suggest replacement for sdb2:
zpool replace new-tank sdb2 /dev/disk/by-id/ata-INTEL_SSDSC2KB019T8_PHYF917101J31P9DGN-part2

# Suggest replacement for 727d67bc-00f6-4a82-99ac-e9773239a744:
zpool replace new-tank 727d67bc-00f6-4a82-99ac-e9773239a744 /dev/disk/by-id/ata-SAMSUNG_MZ7LM1T9HMJP-00005_S2TVNX0KA17264-part1

Don’t suppose there is a better way?

Yes, very much so. TrueNAS expects pools to consist of UUIDs, not /by-id/ devices. So don’t replace the UUID ones at all, and replace (e.g.) sdh2 with its matching device under /dev/disk/by-partuuid/.

1 Like

Dan, thanks!

Here is the command to match device names and partuuids:

  • lsblk -bo NAME,LABEL,VENDOR,MODEL,SERIAL,PARTUUID,START,SIZE,PARTTYPENAME
2 Likes

Thank you, will check that later tonight.

Odd that the two samsung drives show as Apple...
lsblk -bo NAME,LABEL,VENDOR,MODEL,SERIAL,PARTUUID,START,SIZE,PARTTYPENAME
NAME   LABEL         VENDOR MODEL     SERIAL     PARTUUID                               START          SIZE PARTTYPENAME
sda                  QEMU   QEMU HARD drive-scsi                                                53687091200 
├─sda1                                           93dd5ddc-8455-11ee-936e-bd2b4da75ad7      40        524288 BIOS boot
└─sda2 boot-pool                                 93ecdb9d-8455-11ee-936e-bd2b4da75ad7    1064   53670313984 FreeBSD ZFS
sdb                  ATA    INTEL SSD PHYF917101                                              1920383410176 
├─sdb1 freenas:swap1                             5ba0b536-9c4c-11ee-baa6-338af3b95ab7     128    2147483648 FreeBSD swap
└─sdb2 new-tank                                  5ba49f11-9c4c-11ee-baa6-338af3b95ab7 4194432 1918235840512 FreeBSD ZFS
sdc                  ATA    INTEL SSD PHYF917101                                              1920383410176 
├─sdc1 swap0                                     f201c7d0-824d-11ee-a3a0-d05099c0ad1e     128    2147483648 FreeBSD swap
└─sdc2 new-tank                                  f2120d43-824d-11ee-a3a0-d05099c0ad1e 4194432 1918235840512 FreeBSD ZFS
sdd                  ATA    INTEL SSD PHYF020005                                              1920383410176 
├─sdd1 swap0                                     a33af638-bfca-11ee-ac2a-118a77377394     128    2147483648 FreeBSD swap
└─sdd2 new-tank                                  a33e9488-bfca-11ee-ac2a-118a77377394 4194432 1918235840512 FreeBSD ZFS
sde                  ATA    SAMSUNG M S2TVNX0KA1                                              1920383410176 
└─sde1 new-tank                                  727d67bc-00f6-4a82-99ac-e9773239a744    2048 1920382009344 Solaris /usr & Apple ZFS
sdf                  ATA    INTEL SSD PHYF917103                                              1920383410176 
├─sdf1 swap0                                     f22767b3-824d-11ee-a3a0-d05099c0ad1e     128    2147483648 FreeBSD swap
└─sdf2 new-tank                                  f239fc89-824d-11ee-a3a0-d05099c0ad1e 4194432 1918235840512 FreeBSD ZFS
sdg                  ATA    SAMSUNG M S1YKNXAH11                                              1920383410176 
├─sdg1                                           ff3514e7-fdf9-4b25-b436-23b796b8787e    2048    2144338432 Linux swap
└─sdg2 new-tank                                  edcd3e74-621b-4d00-837d-dd895fd6a51a 4192256 1918236623360 Solaris /usr & Apple ZFS
sdh                  ATA    INTEL SSD PHYF916500                                              1920383410176 
├─sdh1 freenas:swap1                             f1efe274-824d-11ee-a3a0-d05099c0ad1e     128    2147483648 FreeBSD swap
└─sdh2 new-tank                                  f206a5a7-824d-11ee-a3a0-d05099c0ad1e 4194432 1918235840512 FreeBSD ZFS
sdi                  ATA    SAMSUNG M S2TVNX0KA1                                              1920383410176 
sr0                  QEMU   QEMU DVD- QM00003

Not really. The PARTTYPE column is simply a lookup for a generic name to match a partition type UUID. TrueNAS Core creates partitions with one UUID (516E7CBA-6ECF-11D6-8FF8-00022D09712B - “FreeBSD ZFS”), TrueNAS Scale creates partitions with another (6A898CC3-1DD2-11B2-99A6-080020736631 - “Solaris & Apple (Mac) ZFS”). There isn’t a unique UUID for Linux ZFS, otherwise TrueNAS Scale would probably use that.

Thanks again!!!

Why did Truenas install them as //dev/sdx if Partition UUID is the best way? Also, you know what is not printed on the outside of the drive, UUID. Asking because I am dumb.

Serial Number is the only unique identifier of the drives for replacements. You should put labels with at least the last few characters of the SN so you can see them in case. Three or four characters. If you have 100 drives, you may need full serial numbers. It’s helpful when you need to pull dead drive …xyz and you can’t read the default label location.

UUIDs cannot be printed since they are created by software, but they are the sole identifier that is guaranteed to not change over the life of the drive in the pool.
Serial numbers are nice… but some controllers may lie about them.

2 Likes

That was my plan, to replace the displayed /dev/sdb2, sdc2… with commands like the following.

zpool replace new-tank 727d67bc-00f6-4a82-99ac-e9773239a744 /dev/disk/by-id/ata-SAMSUNG_MZ7LM1T9HMJP-00005_S2TVNX0KA17264-part1

and get: 
invalid vdev specification
use '-f' to override the following errors:
/dev/disk/by-id/ata-SAMSUNG_MZ7LM1T9HMJP-00005_S2TVNX0KA17264-part1 is part of active pool 'new-tank'

is it safe to -f(force) I would like to get some consistent naming


	NAME                                      STATE     READ WRITE CKSUM
	new-tank                                  ONLINE       0     0     0
	  raidz2-0                                ONLINE       0     0     0
	    sdh2                                  ONLINE       0     0     0
	    edcd3e74-621b-4d00-837d-dd895fd6a51a  ONLINE       0     0     0
	    sdf2                                  ONLINE       0     0     0
	    sdd2                                  ONLINE       0     0     0
	    sdc2                                  ONLINE       0     0     0
	    sdb2                                  ONLINE       0     0     0
	    727d67bc-00f6-4a82-99ac-e9773239a744  ONLINE       0     0     0

I would just run the commands to correct what you see to the default ZFS behavior
sdh2 being replaced by the UUID for the associated partition. You have two doing the default and 5 to make your desired changes to.

I would have to look at the GUI but it, probably, only expects device name or UUID. It may break with other values.

I had this in my Notepad. It may be of help going forward

Here is the command to match device names and partuuids:

    lsblk -bo NAME,LABEL,VENDOR,MODEL,SERIAL,PARTUUID,START,SIZE,PARTTYPENAME