In case you face issues with AFS on the Gateway (for instance /gw/switm, /gw/swimas, /gw/modules, $HOME), if this was due to an AFS restart, you can try to refresh the AFS cache by running 

fs flushv