All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vaibhaw Pandey <vaibhaw@scalegrid.io>
To: linux-xfs@vger.kernel.org
Subject: Re: XFS doesn't auto mount on boot when /etc/fstab entry has fs type set to auto
Date: Thu, 16 Feb 2017 08:37:21 +0530	[thread overview]
Message-ID: <CADWLRhoFdQUS-XjLj5R3JxjBnkXLN-TAjqCMBZDJWW36SOkWFw@mail.gmail.com> (raw)
In-Reply-To: <20170215122745.nmwkmcqo23ecfr53@eorzea.usersys.redhat.com>

Carlos,

Thanks a lot for replying. :)

I should have read the mount man page more carefully: By adding "xfs"
to /etc/filesystems, the /etc/fstab entry even with an auto started
working fine.

blkid always had an entry for the volume in question but that didn't
make a difference in this case:
$ sudo blkid
/dev/xvda1: LABEL="/" UUID="ebbf1f1c-fb71-40aa-93a3-056b455e5127" TYPE="ext4"
/dev/xvdb: UUID="bf4be26c-1c1c-40fc-b5cf-b9048dcc61b6" TYPE="xfs"


> Anyway, if you have the logs from your system when it tries to mount the
> partition maybe it give us some clue of what is happening.

It was the complete lack of logs in dmesg or /var/log/messages about a
failure to mount is what confused me on why this was failing. A
successful mount logs but an unsuccessful one doesn't. I think I will
ask a mount expert for help on this.

Thanks again,
Vaibhaw

On Wed, Feb 15, 2017 at 5:57 PM, Carlos Maiolino <cmaiolino@redhat.com> wrote:
> Hi,
>
>> LABEL=/     /           ext4    defaults,noatime  1   1
>> tmpfs       /dev/shm    tmpfs   defaults        0   0
>> devpts      /dev/pts    devpts  gid=5,mode=620  0   0
>> sysfs       /sys        sysfs   defaults        0   0
>> proc        /proc       proc    defaults        0   0
>> /dev/sdb /redis_data auto noatime,noexec,nodiratime 0 0
>> $ df -T /redis_data/
>> Filesystem     Type 1K-blocks  Used Available Use% Mounted on
>> /dev/xvdb      xfs    5232640 32940   5199700   1% /redis_data
>>
>> However if I change the /etc/fstab directive to:
>>
>> /dev/sdb /redis_data xfs noatime,noexec,nodiratime 0 0
>>
>> the auto mount starts working fine. Now this isn't a major problem
>> since the functionality ultimately works. But I would certainly like
>> to have the flexibility to avoid hard coding the fs type in the code
>> that generates these fstab entries.
>>
>
> I believe this is not a question for us, but for whatever software you are using
> to mount your partitions, systemd, unit, init, whatever. It also might be a
> problem with `mount` command, but if you say you can mount it normally after the
> system is live, it looks not to be the case.
>
> XFS doesn't control who and how it reads the entries in fstab.
>
> As stated in `mount` manpage:
>
> "If no -t option is given, or if the auto type is specified, mount will try  to
> guess  the  desired  type.   Mount  uses  the  blkid  library for guessing the
> filesystem type; if that does not turn up anything that looks familiar,  mount
> will  try  to  read  the  file  /etc/filesystems,  or, if that
> does not exist, /proc/filesystems.  All of the filesystem types listed there
> will be  tried, except  for  those  that  are labeled "nodev" (e.g. devpts, proc
> and nfs). If /etc/filesystems  ends  in  a  line  with  a  single  *,   mount
> will   read /proc/filesystems  afterwards.   While  trying,  all  filesystem
> types will be mounted with the mount option silent."
>
>
> Anyway, if you have the logs from your system when it tries to mount the
> partition maybe it give us some clue of what is happening.
>
> Cheers
>
>> Any pointers or help is much appreciated. :)
>>
>> Thanks,
>> Vaibhaw
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> --
> Carlos



-- 
Member of Technical Staff | ScaleGrid.io | @_vaibhaw | LinkedIn | Google+
Read my latest blog post: I Get To Know the Redis Database: Iterating Over Keys

  reply	other threads:[~2017-02-16  3:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-15  5:13 XFS doesn't auto mount on boot when /etc/fstab entry has fs type set to auto Vaibhaw Pandey
2017-02-15 12:27 ` Carlos Maiolino
2017-02-16  3:07   ` Vaibhaw Pandey [this message]
2017-02-16  7:12     ` Vaibhaw Pandey
2017-02-16  8:57       ` Carlos Maiolino
2017-02-16 11:28         ` Vaibhaw Pandey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADWLRhoFdQUS-XjLj5R3JxjBnkXLN-TAjqCMBZDJWW36SOkWFw@mail.gmail.com \
    --to=vaibhaw@scalegrid.io \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.