public static void syncFileSystem(String host, GSSCredential gssCred) {
try {
GramAttributes gramAttr = new GramAttributes();
gramAttr.setExecutable("/bin/sync");
GramJob job = new GramJob(gramAttr.toRSL());
job.setCredentials(gssCred);
logger.info("RSL = " + job.getRSL());
try {
Gram.request(host, job, false, false);
} catch (Exception e) {