LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-20-2011, 05:49 PM   #1
Adil Boyun
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Rep: Reputation: Disabled
Question How to change var folder to a new mounted raid 1 drive on Centos 6 x64


Hello,

I have a raid 1, 3 tb disk running on centos 6 64 bit fresh install.
My sistem is installed on a different 120 gb ssd disk.

With awesome help at LQ, I finally made the raid drive run, now what i want is to mount it now as /var folder, instead of current one at ssd. My aim with this is to run plesk vhost files on my 3 tb disk, and happily store data here since scriptalias for cgi-bin and changing root directory for plesk is kinda method i didnt like.

Is this possible and something good to go?

At this link you can have more information on my configuration.

Best regards,
 
Old 11-21-2011, 04:08 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Code:
- boot to single user mode
- mount the new volume to a temporary location
- rsync -av /var/ /mnt/newvar/
- edit /etc/fstab, comment out current /var and add a new line using the new volume
- reboot
- if everything looks good, reclaim the space :-
   - reboot to single user
   - unmount /var
   - rm -rf /var/*
   - reboot

Last edited by kbp; 11-21-2011 at 04:10 PM.
 
Old 11-21-2011, 04:39 PM   #3
Adil Boyun
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
this method didn't work since i wasn't able to take a good snapshot of variables at var folder
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help with mounting NTFS Drive on CentOS 5.6 x64 coolsg5636 Linux - Newbie 6 09-29-2011 02:22 AM
change the permissions of files in a mounted drive sfeng Linux - Hardware 1 08-20-2011 09:52 AM
Removing a mounted drive folder safely elliot01 Linux - Software 3 12-04-2009 11:48 AM
what is GPT, and other partitioning questions (centos x64, large RAID array) whysyn Linux - Hardware 3 04-29-2009 08:43 PM
How is an USB drive mounted, and how can I change the permissions jjge Ubuntu 6 04-26-2007 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration