LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-09-2007, 06:59 PM   #1
deb_Tyrael
LQ Newbie
 
Registered: Sep 2005
Location: South Wayne
Distribution: Ubuntu-Workstation/CentOS 4.4-Server
Posts: 6

Rep: Reputation: 0
Acronis and LVM restores.


Im not sure many people are familiar with acronis as it is rather expensive. However Acronis is not the root of the issue here. I need a way to essentially take all the data from inside an LVM and make just a normal non-LVM ext3 partition. Ive been considering grabbing all the files and putting them on an FTP server or the like, formatting to get rid of the LVM and just modifying the bootloader to look in a different at the new EXT3 drive instead. Will this work and If not anyone have a better solution?



-Thanks
--Thomas Curtis
---http://runwired.net
----"Dedicated to perfecting the ways computers work and communicate."
 
Old 02-11-2007, 04:58 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
You don't describe your exact setup so it's hard to answer.

One thing to watch is to make sure that all permission and mode bits are preserved. Otherwise you'll have a lot of trouble when restoring. The best solution is usually to create a tar archive of your data, which you can then put anywhere (ftp server, external disk or another internal disk). Then you change the partitions from LVM to non-LVM.

Another point to watch is that if logical volumes are assigned in /etc/fstab, make sure you modify those to point to the actual physical devices as VGs/LVs will no longer exist.

If you post more detail, we can give a more precise answer.
 
Old 02-11-2007, 06:18 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I am in the process of setting up my 1st box to use LVM. What problems are you having that you want stop using it? Maybe I can save some heartache.

edit: have --> save (bad keyboard, bad keyboard)

Last edited by archtoad6; 02-16-2007 at 07:44 PM.
 
Old 02-13-2007, 02:24 PM   #4
deb_Tyrael
LQ Newbie
 
Registered: Sep 2005
Location: South Wayne
Distribution: Ubuntu-Workstation/CentOS 4.4-Server
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by archtoad6
I am in the process of setting up my 1st box to use LVM. What problems are you having that you want stop using it? Maybe I can have some heartache.

first Of all LVM is great In the event that you may need to add more hard drive space and need it to be accessible as tho there was only one hard drive.

However For Acronis LVMs are not supported very well. I need to be pull all my data out of the LVM so I can transfer it into an EXT3 Partition. Now I could just load up and TAR the whole volume down and transfer it into the EXT3 partition. However if anyone knows of a better solution it would be greatly Appreciated.
 
Old 02-13-2007, 03:30 PM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
What's wrong with the tar method? What constraints do you have?

As I said, you don't give enough information. For example, if both the LVM and the non-LVM partition are online at the same time, you could just mount them both (maybe from a LiveCD) and copy data over with "cp -r".

So please describe your setup in detail, otherwise you won't get the "perfect" answer.
 
Old 02-13-2007, 03:59 PM   #6
deb_Tyrael
LQ Newbie
 
Registered: Sep 2005
Location: South Wayne
Distribution: Ubuntu-Workstation/CentOS 4.4-Server
Posts: 6

Original Poster
Rep: Reputation: 0
If i TAR the contents of the LVM area and over write a fresh install (of CentOS with my desired partition structure) will it work? that is as basic and as specific as I can get.
 
Old 02-14-2007, 12:36 AM   #7
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Basically, yes. If you want to have exactly the same install, just without LVM, you shouldn't reinstall Centos.

From a LiveCD,
- create a tar of everything and store it elsewhere
- on this elsewhere, check that your tar is complete
- recreate your harddisk partitions (cfdisk, fdisk, parted) and your ext3 file systems (mkfs -t ext3)
- untar the previously created tar
- adjust /etc/fstab
- adjust /boot/grub/menu.lst and reinstall grub
- reboot
and you will drop into exactly the same installation, just without LVM.

I've done this before, it worked without a problem.
 
Old 02-14-2007, 08:11 AM   #8
deb_Tyrael
LQ Newbie
 
Registered: Sep 2005
Location: South Wayne
Distribution: Ubuntu-Workstation/CentOS 4.4-Server
Posts: 6

Original Poster
Rep: Reputation: 0
Now ive reinstalled grub before but it was in RH9 and that was several years ago.. what the exact command that i would use if grub was on /boot
just so Im sure...
 
Old 02-16-2007, 07:42 PM   #9
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Accidental post trying to edit, sorry.

Last edited by archtoad6; 02-16-2007 at 07:47 PM.
 
Old 02-17-2007, 04:08 AM   #10
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Quote:
Originally Posted by deb_Tyrael
what the exact command that i would use if grub was on /boot
I don't use grub, but I think it's "grub-install".
 
  


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
RHEL4: Proper full system restores hooliganism Red Hat 1 11-29-2006 08:52 AM
Alsa restores mixer settings on reboot Dswissmiss Linux - Software 2 10-20-2005 05:51 PM
kde 'restores' windows at start up. rgiggs Mandriva 1 05-29-2004 06:21 AM
Backups and Restores aikempshall Slackware 3 04-22-2004 03:34 AM
mandrake 8.2 session dir restores itself khutze Linux - Software 0 07-30-2002 09:56 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:58 AM.

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