- fprintf(stderr, "Is the backend filesystem mounted?\n"
- "Check /etc/mtab and /proc/mounts\n");
- if (errno == ENODEV)
- fprintf(stderr, "Are the lustre modules loaded?\n"
- "Check /etc/modprobe.conf and "
- "/proc/filesystems\n");
- if (errno == ENOTBLK)
- fprintf(stderr, "Do you need -o loop?\n");
- if (errno == ENOMEDIUM)
- fprintf(stderr,
- "This filesystem needs at least 1 OST\n");
- if (errno == ENOENT) {
- fprintf(stderr, "Is the MGS specification correct?\n");
- fprintf(stderr, "Is the filesystem name correct?\n");
- fprintf(stderr, "If upgrading, is the copied client log"
- " valid? (see upgrade docs)\n");
- }
- if (errno == EALREADY)
- fprintf(stderr, "The target service is already running."
- " (%s)\n", mop.mo_usource);
- if (errno == ENXIO)
- fprintf(stderr, "The target service failed to start "
- "(bad config log?) (%s). "
- "See /var/log/messages.\n", mop.mo_usource);
- if (errno == EIO)
- fprintf(stderr, "Is the MGS running?\n");
- if (errno == EADDRINUSE)
- fprintf(stderr, "The target service's index is already "
- "in use. (%s)\n", mop.mo_usource);
- if (errno == EINVAL) {
- fprintf(stderr, "This may have multiple causes.\n");
- if (cli)
- fprintf(stderr, "Is '%s' the correct filesystem"
- " name?\n", cli);
- fprintf(stderr, "Are the mount options correct?\n");
- fprintf(stderr, "Check the syslog for more info.\n");
- }
-
- /* May as well try to clean up loop devs */
+ fprintf(stderr,
+ "Is the backend filesystem mounted?\n Check /etc/mtab and /proc/mounts\n");
+ if (errno == ENODEV)
+ fprintf(stderr,
+ "Are the lustre modules loaded?\n Check /etc/modprobe.conf and /proc/filesystems\n");
+ if (errno == ENOTBLK)
+ fprintf(stderr, "Do you need -o loop?\n");
+ if (errno == ENOMEDIUM)
+ fprintf(stderr,
+ "This filesystem needs at least 1 OST\n");
+ if (errno == ENOENT) {
+ fprintf(stderr, "Is the MGS specification correct?\n");
+ fprintf(stderr, "Is the filesystem name correct?\n");
+ fprintf(stderr,
+ "If upgrading, is the copied client log valid? (see upgrade docs)\n");
+ }
+ if (errno == EALREADY)
+ fprintf(stderr,
+ "The target service is already running. (%s)\n",
+ mop.mo_usource);
+ if (errno == ENXIO)
+ fprintf(stderr,
+ "The target service failed to start (bad config log?) (%s). See /var/log/messages.\n",
+ mop.mo_usource);
+ if (errno == EIO)
+ fprintf(stderr, "Is the MGS running?\n");
+ if (errno == EADDRINUSE)
+ fprintf(stderr,
+ "The target service's index is already in use. (%s)\n",
+ mop.mo_usource);
+ if (errno == EINVAL) {
+ fprintf(stderr, "This may have multiple causes.\n");
+ if (cli)
+ fprintf(stderr,
+ "Is '%s' the correct filesystem name?\n",
+ cli);
+ fprintf(stderr, "Are the mount options correct?\n");
+ fprintf(stderr, "Check the syslog for more info.\n");
+ }
+
+ /* May as well try to clean up loop devs */