Viewing Swap and Dump Information
To view the swap area, use the swap -l
command. For example:
$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 145,2 16 16646128 16646128
To view the dump configuration, use the dumpadm
command. For example:
$ dumpadm
Dump content: kernel pages
Dump device: /dev/zvol/dsk/rpool/dump (dedicated)
Savecore directory: /var/crash/
Savecore enabled: yes
Save compressed: on
You can also manually create swap or dump volumes in a non-root pool. After creating a dump device on the non-root pool, you must also reset it by running the dump -d
command.
In the following example, a dump device is created on the non-root pool bpool
.
$ zfs create -V 10g bpool/dump2 $ dumpadm -d /dev/zvol/dsk/bpool/dump2 Dump content : kernel with ZFS metadata Dump device : /dev/zvol/dsk/bpool/dump2 (dedicated) Savecore directory: /var/crash Savecore enabled : yes Save compressed : on