partition changing
Northrup, Wilson
wilson_northrup at merck.com
Mon Aug 28 12:55:59 UTC 2006
I guess you could copy the files in /var/www to /home/www, and confirm they
are copied correctly. Once that is done you could delete the files in
/var/www and symlink to /home/www right away, or run for a week with the
symlink, and then delete the files after that time.
In any case, make a backup and check to ensure it is a good backup before
you start.
wilson
-----Original Message-----
From: Anze Vidmar [mailto:anzevi at gmail.com]
Sent: Monday, August 28, 2006 08:37 AM Eastern Standard Time
To: redhat-list
Subject: partition changing
hello my guru friends :)
On a web hosting server we have silly partitioning like this:
[anze at yokohama ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.7G 4.4G 2.0G 69% /
/dev/sda2 150G 1G 149G 1% /home
/dev/sda4 18G 17G 1G 97% /var
(don't ask, I wasn't designing this :)
So, I would like to swap partition /home with /var, because /var
partition (where all the web hosting files are saved) are running out of
disk space. The partition system id on both partitions is Linux. In
theory this is no problem. But I'm not sure if this is safe to do while
in runlevel 3 (the server is in another country and i don't have a
chance to go there to boot into single mode for maintaining).
So, the only way would be:
- stop the Internet/database services (at least this can be done) on the
server
- backup /var and /home partitions in *.tar file (to keep permissions)
- unmount the /var and /home partitions
- edit the /etc/fstab file to correct mount point
- mount the new /var partition and extract the backup tar file there
- mount the /home partition and extract the backup tar file there
- cross my fingers and hope not to get burned :-/
Of course I would clean the two partitions before restoring backup files
on them. Is this method acceptable?
Thank you,
--
Anze Vidmar <anzevi at gmail.com>
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and then
delete it from your system.
------------------------------------------------------------------------------
More information about the redhat-list
mailing list