-
Notifications
You must be signed in to change notification settings - Fork 16
XFS Guide
Joonghoon Kim edited this page Nov 20, 2015
·
1 revision
Create directories for user file system:
$ sudo mkdir /home/webida/fs
$ soudo chown webida:webida /home/webida/fs
Create and Mount XFS to /home/webida/fs
$ sudo apt-get install xfsprogs
$ sudo mkfs.xfs </dev/sdaX> # create xfs filesystem
$ sudo mount -o pquota </dev/sdaX> /webida/fs # mount with pquota option
$ sudo touch /etc/projects /etc/projid # make pquota related files (?)
$ sudo chgrp webida /etc/projects /etc/projid # Set pquota related files writable (?)
Check the contents of /etc/fstab
file:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=b854d7a8-e119-40a4-a043-a0fd32edf471 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda1 during installation
UUID=cd6ada1f-5832-4268-a8d2-3df70a167f41 none swap sw 0 0
/dev/sda7 /home/webida/fs xfs defaults, pquota 1 2
Modify webida-server configuration file. See Configurations where's the configuration file & how to change configurable properties.(You should change conf.servies.fs.linuxfs)
// conf.js
...
fsPath: process.env.WEBIDA_FS_PATH || '/webida/fs',
...
** webida user should be able to run /usr/sbin/xfs_quota without password. see your sudores configuration **