LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-17-2009, 04:05 AM   #31
GazL
Senior Member
 
Registered: May 2008
Posts: 2,377

Rep: Reputation: 478Reputation: 478Reputation: 478Reputation: 478Reputation: 478

I don't believe it's possible to do that. Something needs to make the volume group and root lv available which is normally done by vgscan --mknodes and vgchange -ay in the lvm enabled initrd. Besides, something would have to tell the kernel which lv is the rootfs.

The way I do recovery with a root on lvm system is as follows

Boot from Install CD, enter whatever options you needed when you did your initial install (if any)
Login to the install environment as root and then from the command line.

vgscan --mknodes
vgchange -ay
mount /dev/rootvg/lvroot /mnt
mount /dev/rootvg/lvusr /mnt/usr (and so on for any other filesystems you have)

... then either fix things manually under /mnt or if you need to run from your normal system environment directly

mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt


If you want to avoid all this messing about, then your best bet is to keep a second 'recovery' setup in your lilo.conf using a known good kernel and initrd which you should never change after you get it running.

Last edited by GazL; 09-17-2009 at 04:07 AM.
 
Old 09-17-2009, 04:46 AM   #32
tramni1980
Member
 
Registered: Jul 2006
Location: Sofia, Bulgaria
Distribution: Slackware 13.37
Posts: 707

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by GazL View Post
I don't believe it's possible to do that. Something needs to make the volume group and root lv available which is normally done by vgscan --mknodes and vgchange -ay in the lvm enabled initrd. Besides, something would have to tell the kernel which lv is the rootfs.

The way I do recovery with a root on lvm system is as follows

Boot from Install CD, enter whatever options you needed when you did your initial install (if any)
Login to the install environment as root and then from the command line.

vgscan --mknodes
vgchange -ay
mount /dev/rootvg/lvroot /mnt
mount /dev/rootvg/lvusr /mnt/usr (and so on for any other filesystems you have)

... then either fix things manually under /mnt or if you need to run from your normal system environment directly

mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt


If you want to avoid all this messing about, then your best bet is to keep a second 'recovery' setup in your lilo.conf using a known good kernel and initrd which you should never change after you get it running.
Thanks a lot, that made things clear
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
some unformal LVM and RAID questions -- crispyleif Linux - Software 4 07-27-2009 02:10 AM
Using LVM on RAID, some questions [GOD]Anck Slackware 2 03-16-2008 11:07 AM
software raid5 + LVM and other questions slackman Linux - Server 0 05-08-2007 02:54 AM
Basic LVM Questions. hondaman Linux - Software 0 08-24-2006 04:54 PM
lvm questions billehunt Linux - Software 4 06-15-2005 03:12 PM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration