[Lustre-discuss] Swap on Lustre (was: Client is not accesible when OSS/OST server is down)

Serge Ryabchun serge.ryabchun at gmail.com
Wed Apr 30 02:17:03 PDT 2008


2008/4/30, Robin Humble <rjh+lustre at cita.utoronto.ca>:
>
>  we too are very interested in swap on Lustre using o2ib, so I'm happy
>  to hear it'll be in 1.6.6.

I used swap with loop on lustre over tcp and o2ib more then 2 years.

cat /etc/rc.d/rc.swap
#!/bin/bash

SWAP=/mnt/adm/swap/${HOSTNAME}.swap

if [ ! -f $SWAP ]; then
   dd if=/dev/zero of=$SWAP bs=1M count=4096
else
   dd if=$SWAP of=/dev/null count=1 bs=1M
fi

losetup /dev/loop0 $SWAP
mkswap /dev/loop0 && swapon /dev/loop0

-- 
Serge Ryabchun <serge.ryabchun at gmail.com>



More information about the lustre-discuss mailing list