Re: simple fstab - ?

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

 



I thinkd it would be better to mount it via systemd. Here is an example
for a mount-file:
-----------------
[Unit]
Description = Data dir
After=network.target glusterfs-server.service
Requires=network-online.target

[Mount]
What=c-01:/gv1
Where=/glusterfs
Type=glusterfs
Options=defaults,_netdev,negative-timeout=10,attribute-timeout=30,fopen-keep-cache,direct-io-mode=enable,acl

[Install]
WantedBy=multi-user.target

-----------------

in "What" you put your server and volume-name. Where is the path to
mount to. Put the file to /etc/systemd/system The name of the file must be:
glusterfs.mount if the mountpoint is /glusters. If you have a mountpoint
/mnt/glusterfs then the filename is mnt.glusterfs.mount.

The example is the systemd-script running on the gluester-server it
self. If you want to use it on a client replace
"glusterfs-server.service" with "glusterfs-client.service"


Am 28.12.21 um 18:48 schrieb lejeczek:
> Hi guys
> 
> I have simple fstab
> 
> dzien.direct:/VMs3   /mnt glusterfs
> defaults,_netdev,x-systemd.requires=glusterd.service,x-systemd.automount
> 0 0
> 
> and have tried variations of that, but ver. 10.x fails with:
> 
> -> $ mount -vv /mnt/
> /sbin/mount.glusterfs: illegal option -- v
> Usage: /sbin/mount.glusterfs <server>:<volume/subdir> <mountpoint>
> -o<options>
> Options:
> man 8 mount.glusterfs
> To display the version number of the mount helper: /sbin/mount.glusterfs -V
> 
> is that v. 10.x's problem?
> 
> thanks, L>
> ________
> 
> 
> 
> Community Meeting Calendar:
> 
> Schedule -
> Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
> Bridge: https://meet.google.com/cpu-eiue-hvk
> Gluster-users mailing list
> Gluster-users@xxxxxxxxxxx
> https://lists.gluster.org/mailman/listinfo/gluster-users

-- 
Stefan Kania
Landweg 13
25693 St. Michaelisdonn


Signieren jeder E-Mail hilft Spam zu reduzieren und schützt Ihre
Privatsphäre. Ein kostenfreies Zertifikat erhalten Sie unter
https://www.dgn.de/dgncert/index.html
Download der root-Zertifikate: https://www.dgn.de/dgncert/downloads.html


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

________



Community Meeting Calendar:

Schedule -
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC
Bridge: https://meet.google.com/cpu-eiue-hvk
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
https://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux