LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-06-2007, 12:33 PM   #1
TheOracle
Member
 
Registered: Nov 2004
Posts: 87

Rep: Reputation: 15
LVM and Stage3 / Bootstrap / Rpmstrap Install Issues


Hi all

In trying to install a Gentoo Stage3 / Debian Bootstrap / Red Hat Rpmstrap environment all goes well until it comes to boot time.

I think the issue here is that I'm using LVM.

1) create the LVM partitions, format etc from FC6 using the graphical interface.
2) mount the part and mount proc. "mount -t ext3 /dev/VolGroup01/LogVol01 /mnt/install/"
3) install the file system
4) chroot and configure fstab, grub.conf etc. (see below)
5) run pvscan ; lvscan ; vgscan (see output below)
6) on re-boot the machine sticks at "VFS: Unable to mount root fs via NFS, trying floppy"... "sd 2:0:0:0:"... not sure if this is a red herring!

Extra info:
localhost linux # mkinitrd /boot/initrd.img 2.6.19-gentoo-r5
unable to stat /dev/VolGroup01/LogVol01: 2

Please tell me what is wrong
Graeme



---x---
localhost dev # pvscan
/sys/block: opendir failed: No such file or directory
PV /dev/sda5 VG VolGroup00 lvm2 [38.56 GB / 32.00 MB free]
PV /dev/sda2 VG VolGroup01 lvm2 [46.56 GB / 0 free]
Total: 2 [85.12 GB] / in use: 2 [85.12 GB] / in no VG: 0 [0 ]

---x---

localhost dev # lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [36.59 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
ACTIVE '/dev/VolGroup01/LogVol00' [36.00 GB] inherit
ACTIVE '/dev/VolGroup01/LogVol01' [10.56 GB] inherit

---x---

localhost dev # vgscan
Reading all physical volumes. This may take a while...
/sys/block: opendir failed: No such file or directory
Found volume group "VolGroup00" using metadata type lvm2
Found volume group "VolGroup01" using metadata type lvm2

---x---

localhost dev # cat /etc/fstab
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda3 /boot ext2 noauto,noatime 1 2
/dev/VolGroup01/LogVol01 / ext3 noatime0 1
/dev/VolGroup00/LogVol01 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

--x--
grub.conf

title Fedora Core new (2.6.18-1.2798.fc6)
root (hd0,2)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup01/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
#
title Gentoo
root (hd0,2)
kernel /kernel ro root=/dev/VolGroup01/LogVol01
initrd /initrd.img
 
Old 02-07-2007, 05:31 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,504

Rep: Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079Reputation: 1079
You read and followed the Gentoo LVM2 installation guide ???.
 
Old 02-08-2007, 04:06 AM   #3
TheOracle
Member
 
Registered: Nov 2004
Posts: 87

Original Poster
Rep: Reputation: 15
Hi Syg00

Yes, this is under http://www.gentoo.org/doc/en/lvm2.xml.
So you know I did not create any volumes under the Gentoo chroot env. as they were already there.

What I did do is run...
# vgscan --mknodes
# vgchange -a y
... in addition to pvscan ; lvscan ; vgscan.

Some extra info:
localhost / # ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 63 2007-02-06 11:41 control
brw------- 1 root root 253, 0 2007-02-06 18:04 VolGroup00-LogVol00
brw------- 1 root root 253, 1 2007-02-06 18:04 VolGroup00-LogVol01
brw------- 1 root root 253, 2 2007-02-06 18:04 VolGroup01-LogVol00
brw------- 1 root root 253, 3 2007-02-06 18:04 VolGroup01-LogVol01

The above is the same in both the fc6 and gentoo env. however there are no links under /dev in the gentoo env as there are in fc6. See below...
Only FC6 has this.
[root@localhost ~]# ls -l /dev/VolGroup0*
/dev/VolGroup00:
total 0
lrwxrwxrwx 1 root root 31 Feb 8 08:40 LogVol00 -> /dev/mapper/VolGroup00-LogVol00
lrwxrwxrwx 1 root root 31 Feb 8 08:40 LogVol01 -> /dev/mapper/VolGroup00-LogVol01

/dev/VolGroup01:
total 0
lrwxrwxrwx 1 root root 31 Feb 8 08:40 LogVol00 -> /dev/mapper/VolGroup01-LogVol00
lrwxrwxrwx 1 root root 31 Feb 8 08:40 LogVol01 -> /dev/mapper/VolGroup01-LogVol01

Thanks again
G
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM issues barrysul Linux - Software 1 11-22-2006 12:23 PM
LVM issues es7us Fedora 1 12-14-2005 02:28 AM
LVM issues ping_wing Linux - General 2 09-18-2005 06:21 PM
Gentoo & Stage3 mungulish Linux - Distributions 9 09-13-2004 04:02 PM
my gentoo stage3 installation guide cheater1034 General 1 09-11-2004 10:43 PM


All times are GMT -5. The time now is 07:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration