Answer the question
In order to leave comments, you need to log in
How to swap a disk in Linux?
Greetings! I need what is called a sanity check, that is, a sanity check.
So, the situation is this:
There is a server with CentOS 7.4 on board. It runs an application that stores user data in /mnt/files . The data is already over 400 GB, and the disk is only 500 ... That's the problem, the disk will soon run out.
What I want to do is add a new 2TB drive, stop the application, rsync all the data from the old drive, mount /mnt/files on the new drive, run the application. PROFIT.
Is this the right plan? Or delusional? What is the best way to solve the problem?
Answer the question
In order to leave comments, you need to log in
add a disk, mount to another location
make rsync
stop the application
make rsync
unmount the old disk
remount
the new disk in /mnt/files
start the application
One Germanjon option, mount. Another option is to take a disk image (I use Clonzilla), restore to a new one, boot, expand the partition to max (parted)
Normal option.
There is another one, if the data is stored structured by folders:
1. Create a folder in the root and mount a 2 TB disk there.
2. Create a slink in the /mnt/files folder to the location of the new disk.
3. Make sure that the application stores data in a new location.
In FreeBSD, often a new disk is mounted on top of an old one via UnionFS. Then the file is read:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question