z2 4disk raid pool. how do i make individual partitions within?

cornboy72

Cadet
Joined
Jul 23, 2022
Messages
5
Hi there, I am the ultimate newbie. I have just set up a 4 disk z2 array using 16 or 18 tb purple hdd, not that it matters.
It's taken me all afternoon to try and work out why i keep getting l4z compression on it, but that's another issue.

now that I have my array, I want to create a couple of small partitions to pop some data into that is independent of the array's primary use.
I have no Idea what to do with SMB sharing and creating datasets or where to go. Any advice would be greatly appreciated.

cheers and beers from Australia.

jason.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Welcome aboard! We were all newbies at the beginning.

You can't create additional partitions. Adding drives to a pool automatically partitions them with a 2 GB swap partition and a ZFS partition that occupies the remainder of the drive.

What you want to do at this point is to create ZFS datasets at the Storage->Pools screen. Click the 3 dots next to the root dataset, and you'll be able to create daughter datasets. Then you can create SMB shares attached to a daughter dataset in the Sharing->Windows Shares screen.

I put together this list of reference material for another newbie. You should read them, along with the TrueNAS Core manual:
  1. ZFS Primer
  2. The path to success for block storage
  3. Please do not run FreeNAS in production as a Virtual Machine!
  4. "Absolutely must virtualize FreeNAS!" ... a guide to not completely losing your data.
  5. What's all the noise about HBA's, and why can't I use a RAID controller?
  6. Some differences between RAIDZ and mirrors, and why we use mirrors for block storage
  7. Path to Success for Structuring Datasets in Your Pool
  8. Path to success for system upgrades
I am curious how you used 16-18 drives to construct a 4-drive RAIDZ2 pool.
 

cornboy72

Cadet
Joined
Jul 23, 2022
Messages
5
Welcome aboard! We were all newbies at the beginning.

You can't create additional partitions. Adding drives to a pool automatically partitions them with a 2 GB swap partition and a ZFS partition that occupies the remainder of the drive.

What you want to do at this point is to create ZFS datasets at the Storage->Pools screen. Click the 3 dots next to the root dataset, and you'll be able to create daughter datasets. Then you can create SMB shares attached to a daughter dataset in the Sharing->Windows Shares screen.

I put together this list of reference material for another newbie. You should read them, along with the TrueNAS Core manual:
  1. ZFS Primer
  2. The path to success for block storage
  3. Please do not run FreeNAS in production as a Virtual Machine!
  4. "Absolutely must virtualize FreeNAS!" ... a guide to not completely losing your data.
  5. What's all the noise about HBA's, and why can't I use a RAID controller?
  6. Some differences between RAIDZ and mirrors, and why we use mirrors for block storage
  7. Path to Success for Structuring Datasets in Your Pool
  8. Path to success for system upgrades
I am curious how you used 16-18 drives to construct a 4-drive RAIDZ2 pool.
thanks Sam, i really appreciate it. I meant i used 16 or 18 tb hdd to create my 4 drive raid z2 pool. thank you once again.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Can you show the results of zpool status -v? I still don't understand how you constructed your pool.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
It's taken me all afternoon to try and work out why i keep getting l4z compression on it
Because that's the default, and 99+% of the time it's fine to keep it that way.
 

cornboy72

Cadet
Joined
Jul 23, 2022
Messages
5
Can you show the results of zpool status -v? I still don't understand how you constructed your pool.
Samuel the -v switch didn't work. please find attached picture from my phone.
 

Attachments

  • zpool status.jpg
    zpool status.jpg
    344.9 KB · Views: 110
Top