Joe Goldthwaite
Dabbler
- Joined
- Jan 12, 2016
- Messages
- 38
Hi,
I've been trying to figure out why my array seems to be one disk short on space. I understand the TB on the drive means 1,000,000,000,000 bytes and that at TB on the computer is 1,099,511,627,776 bytes. Even after adjusting for that, it still seems like I'm short.
I've got a FreeNas system with 12 3tb HGST NAS drives in a raid-z2 format. By my calculations that should give me 27.285 TB of space. I've got a single pool and the storage tab shows it as 24.4 TiB.
I did a "gpart show" trying to figure out how much actual space I was getting from each drive. I noticed that every drive on my system has a 2gb partition for "freebsd-swap". Here's drive ada10;
=> 34 5860533101 ada10 GPT (2.7T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 5856338696 2 freebsd-zfs (2.7T)
5860533128 7 - free - (3.5k)
I understand what a swap file is but I wouldn't think that freebsd would need or even use 2gb of swap space on each of the 12 hard drives on my system. I had FreeNAS build the pool and this was it's default partition layout. Is there are reason for it? Does freenas use that swapfile for anything? Just curious.
Joe Goldthwaite.
I've been trying to figure out why my array seems to be one disk short on space. I understand the TB on the drive means 1,000,000,000,000 bytes and that at TB on the computer is 1,099,511,627,776 bytes. Even after adjusting for that, it still seems like I'm short.
I've got a FreeNas system with 12 3tb HGST NAS drives in a raid-z2 format. By my calculations that should give me 27.285 TB of space. I've got a single pool and the storage tab shows it as 24.4 TiB.
I did a "gpart show" trying to figure out how much actual space I was getting from each drive. I noticed that every drive on my system has a 2gb partition for "freebsd-swap". Here's drive ada10;
=> 34 5860533101 ada10 GPT (2.7T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 5856338696 2 freebsd-zfs (2.7T)
5860533128 7 - free - (3.5k)
I understand what a swap file is but I wouldn't think that freebsd would need or even use 2gb of swap space on each of the 12 hard drives on my system. I had FreeNAS build the pool and this was it's default partition layout. Is there are reason for it? Does freenas use that swapfile for anything? Just curious.
Joe Goldthwaite.