A
Anonymous
Guest
I created a swap space using the following commands
Then I added the following swapfile variable in the /etc/rc.conf file to enable swap file on boot time:
swapfile="/swap0"
And then I rebooted, now I would like to remove the swap space using the command:
and I get the following message:
I know that the swapspace is not being used so I was wondering first of all what the problem is and secondly I was curious about what the /dev/mdctl file is used for.
Code:
# dd if=/dev/zero of=/swap0 bs=1024k count=256
# chown root:wheel /swap0
# chmod 0600 /swap0
swapfile="/swap0"
Code:
# mdconfig -a -t vnode -f /swap0
# swapon /dev/md1
Code:
mdconfig -d -u 0
Code:
mdconfig: ioctl(/dev/mdctl): Device busy