[SOLVED] Can I Use My new LVM Data FOlder for Nextcloud Data Folder & Storage?
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can I Use My new LVM Data FOlder for Nextcloud Data Folder & Storage?
While installing Nextcloud onto my Ubuntu 18.04LTS Server, after opening my browser and going to http://my-ip-address/nextcloud , where it asks for the location of the data folder, is it safe to point it to a data folder I created on my LVM ?
Thanks, frankbell & syg00
I already have 2.7TB Data to put on it within 2 years will definitely be needing to add more, that's why I really wanted to build the foundation so to speak correctly. I wasn't sure if I had to chmod the drive, what else needed to be done to allow the drive to work correctly with nextcloud or how the big boys do it, after checking out and studying the link above, I believe I have everything setup. I will try this tomorrow, just recovered from a bad fstab entry for my LVM, ended up having to boot from the live media and fixing it, now it is booting up and working again.
Now getting Error: Can't create or write into the data directory /mnt/nextcloud/data, what is the best way to fix this ? the data folder is where the 4TB LVM is mounted to, looks like I have a permission problem, seems Like I only have root access, when I check the properties for the data folder it shows it has 4TB, so it's mounted correctly to the LVM, but what is the best workaround for the permissions issue ?
I noticed one of the prerequisites of installing nextcloud was to Update the ownership of files inside the NextCloud root directory so that web server can write data into it.
After doing some homework on this and using Master Ubuntu Server 2nd edition PDF Book, I chose to do it this way.
1. sudo umount /mnt/NextCloud/data
2. cd /mnt/NextCloud
3. ls , then sudo rm -r data
4. ls , to make sure data file is gone.
5. change fstab mount to: /mnt/NextCloud
6. sudo mount /mnt/NextCloud , or sudo mount -a , make sure it mounted.
7. cd /mnt/NextCloud
8. ls -l only lost+found should be in there
9. sudo mkdir /mnt/NextCloud/data
10. ls -l check it out
11. copy anything from original /var/www/html/nextcloud/data to /mnt/NextCloud/data , for testing purposes.
12. sudo chown www-data:www-data /mnt/NextCloud/data
13. ls -l check it out, notice permissions changed.
14. Restart.
15. Check mount point, cd /mnt/NextCloud , ls -l check out permissions on data folder. If permissions are good, install Next Cloud. and tell it the data folder is located at /mnt/NextCloud/data
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.