Find the answer to your Linux question:
Results 1 to 3 of 3
Hey All, We are running Fedora 8 in VMware ESX and have a raw mapping (LUN) assigned to it. Everything has been installed no problems. Now I wish to move ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2

    Moving VAR folder to another drive

    Hey All,

    We are running Fedora 8 in VMware ESX and have a raw mapping (LUN) assigned to it. Everything has been installed no problems.

    Now I wish to move the var folder to the new drive which is also not formatted.

    1. How do I format the additional drive? Then
    2. How do I move the VAR folder permanently without losing any data and preserving the existing permissions?

    My linux skills are limited but do I have experience in other areas.

    Any help would be appreciated.

    Rgards,

    Mark

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You can format the drive using either fdisk, mkfs, or any graphical application such as Gparted. Fedora itself may include a formatting tool. After that it's a simple matter of synchronising the data to the new location - I recommend rsync or tar for this job to preserve permissions.

    Once that has been achieved you can add an entry in /etc/fstab for /var. You will need to find out the device name or blkid of the new partition/drive. To get started you might consider installing Gparted through Yum and formatting your drive - ext3 should be fine for this purpose.

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    2
    Quote Originally Posted by bigtomrodney View Post
    You can format the drive using either fdisk, mkfs, or any graphical application such as Gparted. Fedora itself may include a formatting tool. After that it's a simple matter of synchronising the data to the new location - I recommend rsync or tar for this job to preserve permissions.

    Once that has been achieved you can add an entry in /etc/fstab for /var. You will need to find out the device name or blkid of the new partition/drive. To get started you might consider installing Gparted through Yum and formatting your drive - ext3 should be fine for this purpose.
    Thanks for the reply.

    I was looking at LVM - does this apply to what I wish to achieve?

    Cheers,

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...