Swapping to Network File (NFS and iSCSI) March 06, 2021 06:54PM |
Admin Registered: 14 years ago Posts: 19,324 |
mkdir -p /srv/nfs/swap cd /srv/nfs/swap dd if=/dev/zero of=swapfile3 bs=1024 count=524288 chmod 600 swapfile3 mkswap swapfile3
/mnt/nfs/nfs_server
losetup -v /dev/loop0 /mnt/nfs/nfs_server/srv/nfs/swap/swapfile3 swapon -v /dev/loop0
swaponExpected output
Quote
NAME TYPE SIZE USED PRIO
/dev/loop0 partition 512M 17M -2
cat /proc/swapsExpected output
Quote
Filename Type Size Used Priority
/dev/loop0 partition 524284 256 -2
Re: Swapping to Network File (NFS and iSCSI) March 23, 2021 04:54AM |
Registered: 10 years ago Posts: 1,037 |
Re: Swapping to Network File (NFS and iSCSI) March 23, 2021 07:22AM |
Registered: 11 years ago Posts: 1,303 |
Re: Swapping to Network File (NFS and iSCSI) April 09, 2021 07:50PM |
Admin Registered: 14 years ago Posts: 19,324 |