XFS doesn't auto mount on boot when /etc/fstab entry has fs type set to auto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Needed guidance.

I am trying to move my EC2 machine deployment code to start creating
XFS volumes as opposed to ext4 volumes like it used to. An issue I
have run into is that the XFS volume doesn't get mounted automatically
on reboot with the /etc/fstab entry which used to work fine for ext4.
A manual mount later works perfectly.

Version:
$ uname -a
Linux ip-172-31-39-239 4.4.44-39.55.amzn1.x86_64 #1 SMP Mon Jan 30
18:15:53 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
sudo cat /etc/fstab
#
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.

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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux