Balagopal Pillai
2007-Jun-24 06:53 UTC
[Lustre-discuss] proper way of shutdown of Lustre clients and OST/MGS/MDT
Hi, For Lustre 1.6, the documentation mentions that lnet needs to be shutdown before trying to remove the modules. But lctl network unconfigure fails mentioning an lnet busy error message. I tried the unconfigure after unmounting the lustre volumes. With simple unmounting of Lustre mgs, mdt and ost, the server goes into recovery mode after reboot for about 10 minutes. Since i don''t have a failover setup with just one OST, MDT and MGS, can i safely use umount -f /ost and then do the lnet unconfigure? Thanks. Regards Balagopal Pillai
Andreas Dilger
2007-Jun-25 02:05 UTC
[Lustre-discuss] proper way of shutdown of Lustre clients and OST/MGS/MDT
On Jun 24, 2007 09:53 -0300, Balagopal Pillai wrote:> For Lustre 1.6, the documentation mentions that lnet needs to be > shutdown before trying to remove the modules. But lctl network unconfigure > fails mentioning an lnet busy error message. I tried the unconfigure after > unmounting the lustre volumes. With simple unmounting of Lustre mgs, mdt > and ost, the server goes into recovery mode after reboot for about 10 > minutes.This is normal, if you haven''t unmounted all of the clients.> Since i don''t have a failover setup with just one OST, MDT and > MGS, can i safely use umount -f /ost and then do the lnet unconfigure?You can. Doing so would prevent the still-mounted clients from reconnecting. If you aren''t planning to reconnect the clients you should unmount them first. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc.
Nathaniel Rutman
2007-Jun-25 11:55 UTC
[Lustre-discuss] proper way of shutdown of Lustre clients and OST/MGS/MDT
Andreas Dilger wrote:> On Jun 24, 2007 09:53 -0300, Balagopal Pillai wrote: > >> For Lustre 1.6, the documentation mentions that lnet needs to be >> shutdown before trying to remove the modules. But lctl network unconfigure >> fails mentioning an lnet busy error message. I tried the unconfigure after >> unmounting the lustre volumes. With simple unmounting of Lustre mgs, mdt >> and ost, the server goes into recovery mode after reboot for about 10 >> minutes. >> > > This is normal, if you haven''t unmounted all of the clients. > > >> Since i don''t have a failover setup with just one OST, MDT and >> MGS, can i safely use umount -f /ost and then do the lnet unconfigure? >> > > You can. Doing so would prevent the still-mounted clients from reconnecting. > If you aren''t planning to reconnect the clients you should unmount them > first. >You never need to ''lnet network down'' unless you did a ''lnet network up'' previously. If you''ve stopped all of your lustre services (servers and clients -- ''lctl dl'' should return nothing), then you can remove the modules just using rmmod. The easiest way is to use "lustre_rmmod" script in /usr/sbin.