Make sure you have partitioned & formatted drives, not just formatted a drive like sdb, you format partitions like sdb1. The hdd must be owned by www-data and be set at 770, right? If I can get this working properly, I'll get you a giftcard for dinner or something. I keep notes and samples of what does work so in case something happens I know what TO do and not to do. If we can get this working, I may try later. NC seems to be a bit more complicated to install, at least in their admin manual so I figured since I can't get OC installed then I shouldn't even try. I want to use Nextcloud because it seems to have more options and is constantly improving things. I have nothing else on this pc so I just cleanly install Ubuntu, trust me it's getting old. I've followed youtube videos and read lots of forums trying to edit fstab but I just can't get it right. I did the fstab a few times with bad results, typically doesn't boot. These are the little things that confuse me. I noticed that yours is mounted under /opt? When I mount the 2nd HDD, do I just mount it like /storage? Or does it need to be like /home/storage? I notice the hdd shows as /dev/sdb, I thought it would be sdb1. So, I have to make the directory first, correct? Do I just put it anywhere or in /home or like /storage? I think this is where I have the issue. Like I said I'm still a noob and stubborn, lol. I'm not really sure of how all of this stuff works and I'm sorry if some doesn't make sense. This would really help me a bunch and I can finally get this off my plate. I'm not really sure but from what I understand the mount cannot be /media/noob/ocdata. The HDD name would be "ocdata", the directory would be "storage" and the comp name would be "noob". I know the uuid number isn't here but "uuid" would be fine, if needed. Everything from making a directory,mounting it, permissions and fstab entry would be awesome. I think it would be easier if someone can just give me directions because I know I'm screwing this up and it won't be clear. Do I have to path to the HDD and make a directory on it or just under /media/ocdata? In the past it kept going to /media/compname/ocdata. From what I understand, I have to make a directory next. I name the HDD to ocdata from the disks menu. Is there anyone that can give me a step-by-step list as to what to do? I know some of you can do this in your sleep and I would appreciate it and forgive me if I say things in the wrong context. I can't possible type all of the stuff that I've done so far. I know my problem is the mount and permissions. I have been on multiple forums and can't find the answer to fix this. If I try to change the data path during install it says that it can't create the directory. Basically I just want to put all of the data on the second HDD with a fresh Owncloud install. If I default install Owncloud everything works fine except I have no more space on my SSD. I'm using 16.04 LTS with the LAMP server and I'm installing the Owncloud package. I have been working with this on and off for 2 years and I can't get it right. I have been trying to figure out how to setup a second HDD for the data in Owncloud. We have seen, how our support engineers move the MySQL data directory in CloudLinux CentOS 7.I am kind of new with the Ubuntu/Linux OS. Whmapi1 configureservice service=mysql enabled=1 monitored=1 Now, modify MySQL config file to contain following directivesĭatadir=/home/var_mysql/mysql 11. Create an empty directory, where the socket file will be located # chown -R mysql:mysql /home/var_mysql/mysql 8. In case something went wrong, you would still have a backup of the mysql data directory. Note: optionally, before you move the MySQL data directory, you can copy the directory into different locations or compress it. Now, move the MySQL data directory from the old path to the new path: Next, let’s create an directory in /home path Make sure that the following parameters are present Whmapi1 configureservice service=mysql enabled=1 monitored=0 3. # mysqldump –opt -uroot -proot_password > /tmp/mysqldump 2. Take a full backup of the databases, using the following command: A CentOS 7 dedicated or cloud server with root access.ġ.This article will guide you to move the MySQL data directory to a different directory. To optimize server performance, adding more space is evaluating ways or taking advantage of other storage features. Sometimes, databases outgrowing the space on the file system. In this article, we have guided to move the MySQL data directory in CloudLinux CentOS 7.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |