RE: partition changing



Is this method acceptable?

Test the restore of tar backups or any other backups ,before you
clean out the partitions. I have successfully completed 4 DR test,and my
experience tells me always test your backups by restoring to test
machines .
(2 sets of backups)

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Anze Vidmar
Sent: Monday, August 28, 2006 8:37 AM
To: redhat-list
Subject: partition changing

hello my guru friends :)

On a web hosting server we have silly partitioning like this:

[anze@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@xxxxxxxxx>

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Two "expert" issues I must solve before upgading
    ... > I need an imaging program for my full backups, ... No. Don't consider disk images as file backup. ... image of your current Windows 98 OS partition. ... changes then save a disk image. ...
    (microsoft.public.windowsxp.newusers)
  • Re: file system setup for new system - recommendations?
    ... don't have a separate /usr partition. ... How useful are your backups if you lose the drive that has both your ... Next use the following instructions to set up vinum to mirror the 80GB ... if you have two identical drives (or a ...
    (freebsd-questions)
  • Re: Disc Partitions
    ... I do) a Ghost backup of the C partition (the most likely to be corrupted, ... Start menu afterwards indicating that Windows knows its there. ... The main reason ... You should have at least two backups of both partitions. ...
    (microsoft.public.windowsxp.general)
  • Re: Need specific BootCamp/Vista advice please
    ... backed up was the "free space" in the OSX partition. ... I am trying to create a smaller compressed backup. ... 50GB Vista partition has to be backed up to insure capturing these Vista ... backups and restores. ...
    (comp.sys.mac.system)
  • RE: Lost data when trying to create new partition.
    ... Richard's suggestion of undeleting the partition didn't work ... I have no backups for half of the data and it is important personally. ... Also before reading your post I started running PC Inspector Recovery. ... MSI Radeon 200 m/b 512mb RAM ...
    (microsoft.public.windowsxp.general)