LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2009, 04:56 AM   #16
mazinoz
Member
 
Registered: Mar 2003
Location: Mansfield Queensland Australia
Distribution: Linux Mint - Tara
Posts: 497

Rep: Reputation: 35

A quick word. Definitely backup if repartitioning drives etc. but even more importantly ensure that the backup eg: DVD can actually be RESTORED without problems before doing the repartitioning. Got caught on this once and have never forgotten since!
 
Old 01-08-2009, 04:29 AM   #17
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,638

Rep: Reputation: Disabled
Hmm. I used LVM until the time I installed a new driver(?) version (LVM2) along with a system update and could not anymore get at my LVM1 data. Not funny.

Can one do a meaningful "dd" during data rescues in a LVM'ed system with its stripes?
 
Old 01-08-2009, 06:41 AM   #18
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Using LVM, it can be difficult when booting up to a rescue disk. I had a problem after I opted for LVM during installing SuSe 11.1 on my desktop. I discovered the vgmknodes command which created the device nodes that were missing. After that, I could mount the logical volumes.

I think that servers like database servers using LVM volumes are backed up using a mirror snapshot rather than creating a dd image. If you create an dd image, don't image the physical volumes. If you did, I think you would need to use losetup to attach a device to the backup images, and then use vgmknodes so that the kernel will recognize those loop devices.

IMHO, LVM is convenient if you will need to add drives to increase the size of a partition. Otherwise it seems to be a pain.

I wouldn't recommend image backups anyway, except for the initial installation.
 
Old 01-08-2009, 07:00 AM   #19
avalonit
Member
 
Registered: Jun 2008
Posts: 81

Rep: Reputation: 19
Quote:
Originally Posted by JZL240I-U View Post
Hmm. I used LVM until the time I installed a new driver(?) version (LVM2) along with a system update and could not anymore get at my LVM1 data. Not funny.

Can one do a meaningful "dd" during data rescues in a LVM'ed system with its stripes?
Please open another thread and explain what have you used and what are you using now (vendor, kernel, etc.)
 
Old 01-08-2009, 02:22 PM   #20
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally Posted by JZL240I-U View Post
Can one do a meaningful "dd" during data rescues in a LVM'ed system with its stripes?
No. Unless you dd the entire disk or entire partition that constitutes the PV.

The only thing I ever dd for backup anyway is Track Zero. That contains the MBR (which in turn contains the partition table and GRUB stage 1), and the GRUB stage 1.5 stuff that follows the MBR (but still contained within Track Zero). Everything else is backed up using tar and gz. Or rsync. Or whatever other file-based backup method I choose to use. File-based backups of the OS don't work very well for Windows (if at all!), but they work great for Linux. Imaging of the OS is more of a Windows thing than a Linux one (except where you might want to image an entire disk or entire partition for quick replication/restoration of identical machines).
 
Old 01-09-2009, 03:14 AM   #21
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,638

Rep: Reputation: Disabled
Thanks, haertig. And yes, I handle backups like you do. I was just thinking of the repair after a file system crash or of restoring an inadvertently deleted file. Here LVM will be a problem then.

If I really have to change partition layout there is still "gparted".
 
Old 01-10-2009, 12:18 AM   #22
avalonit
Member
 
Registered: Jun 2008
Posts: 81

Rep: Reputation: 19
Quote:
Originally Posted by JZL240I-U View Post
Thanks, haertig... I was just thinking of the repair after a file system crash or of restoring an inadvertently deleted file. Here LVM will be a problem then.
...
If you had open another thread you could have caught more attention. Anyways for the sake of truth see mondo and testdisk.
 
Old 01-12-2009, 02:20 AM   #23
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,638

Rep: Reputation: Disabled
Thank you for trying to help me avalonit. But the problem I had with the change of the LVM version is several years gone and I mentioned the thing about deleted files and "dd" just as some basic potential stumbling stones if someone wants to use LVM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Computer goes black and reboot inverted.gravity Linux - Hardware 4 01-14-2007 12:28 PM
Computer in endless reboot cycle apocoloco Linux - Software 3 09-12-2005 08:58 AM
Computer requires reboot after idle mpn Slackware 1 10-28-2004 08:21 PM
Slack reboot my computer laurentbon Slackware 4 08-29-2003 05:20 AM
How to add RAID1 without a reboot G../ Linux - Newbie 1 07-20-2002 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 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