Personal tools
You are here: Home Storage Network FreeNAS Create a swap slice on FreeNAS/FreeBSD

Create a swap slice on FreeNAS/FreeBSD

 

List the available devices to select the device name:

# camcontrol devlist

Use gpart to list slices. If the device has a pre-existing parition table then clean the device by filling it with zeros.

# gpart list da0

Create a GUID parition table:

# gpart create -s gpt da0

Create a swap slice (partition):

# gpart add -t freebsd-swap -s 16G da0

 

$ swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/ada3s3      67103504        0 67103504     0%

 

Links

Document Actions