On 10/31/2012 8:08 PM, Alan Feuerbacher wrote:

>> Then you need to go here:
>> http://www.linuxfromscratch.org/blfs/view/svn/postlfs/lvm2.html and read
>> some more about lvm2 and mounting LVM-volumes.
>
> I did that, recompiled the kernel with the suggested option, and
> installed LVM2. Unfortunately, when I brought up the system again, there
> were all sorts of errors. After entering "return" a few times to
> requests of "continue?", the system shut down completely.
>
> Most of the errors had to do with filesystem problems. Since the system
> shut down, I'm not sure how to look at the errors.

I later realized that I had not recompiled the kernel correctly. I had 
left out the part in make menuconfig where some udev stuff had to be 
configured:

Device Drivers  --->
   Generic Driver Options  --->
      Maintain a devtmpfs filesystem to mount at /dev

I recompiled the kernel correctly and now the system runs.

Unfortunately I have more or less the same errors with mounting 
/dev/fedora and /dev/debian that I had at first, which sparked this set 
of emails.

I ran the diagnostic from LVM2 "lvmdump". I could not find anything that 
looked amiss in its outputs.


Here's the latest output of error messages and other relevant 
information in trying to get these mounts to work. This was run 
immediately after booting up:

The directories /mnt/debian and /mnt/fedora exist:
#############
root [ ~ ]# cd /mnt
root [ /mnt ]# ls
debian fedora
#############

Trying to mount /mnt/debian
#############
root [ ~ ]# mount /dev/sdb2 /mnt/debian
[ 3196.296804] EXT3-fs (sdb2): error: unable to read superblock
[ 3196.304234] FAT-fs (sdb2): bogus number of reserved sectors
[ 3196.305150] FAT-fs (sdb2): Can't find a valid FAT filesystem
[ 3196.313195] FAT-fs (sdb2): bogus number of reserved sectors
[ 3196.314078] FAT-fs (sdb2): Can't find a valid FAT filesystem
[ 3196.322066] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, 
block=32
mount: you must specify the filesystem type

root [ ~ ]# mount -t ext3 /dev/sdb2 /mnt/debian
[ 3263.291892] EXT3-fs (sdb2): error: unable to read superblock
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
        missing codepage or helper program, or other error
        In some cases useful info is found in syslog - try
        dmesg | tail  or so
#############

Trying to mount /mnt/fedora
#############
root [ ~ ]# mount /dev/sda2 /mnt/fedora
mount: unknown filesystem type 'LVM2_member'
root [ ~ ]# mount -t ext4 /dev/sda2 /mnt/fedora
mount: unknown filesystem type 'ext4'
#############

Contents of /etc/fstab:
#############
root [ ~ ]# cat /etc/fstab
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

/dev/sdc1      /boot        ext3     defaults            1     2
/dev/sdc5      swap         swap     pri=1               0     0
/dev/sdc6      /            ext3     defaults            1     1
/dev/sdc7      /usr         ext3     defaults            1     2
/dev/sdc8      /opt         ext3     defaults            1     2
/dev/sdc9      /usr/local   ext3     defaults            1     2
/dev/sdc10     /usr/src     ext3     defaults            1     2
/dev/sdc11     /var         ext3     defaults            1     2
/dev/sdc12     /tmp         ext3     defaults            1     2
/dev/sdc13     /home        ext3     defaults            1     2
/dev/sr0       /dev/cdrom   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
proc           /proc        proc     nosuid,noexec,nodev 0     0
sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
devpts         /dev/pts     devpts   gid=5,mode=620      0     0
tmpfs          /run         tmpfs    defaults            0     0
devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
/dev/sda2      /mnt/fedora         auto     noauto            0 0
/dev/sdb2      /mnt/debian         auto     noauto            0 0

# End /etc/fstab
#############

Contents of /etc/mtab:
#############
root [ ~ ]# cat /etc/mtab
/dev/sdc6 / ext3 rw 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
tmpfs /run tmpfs rw 0 0
devtmpfs /dev devtmpfs rw,nosuid,mode=0755 0 0
/dev/sdc1 /boot ext3 rw 0 0
/dev/sdc7 /usr ext3 rw 0 0
/dev/sdc8 /opt ext3 rw 0 0
/dev/sdc9 /usr/local ext3 rw 0 0
/dev/sdc10 /usr/src ext3 rw 0 0
/dev/sdc11 /var ext3 rw 0 0
/dev/sdc12 /tmp ext3 rw 0 0
/dev/sdc13 /home ext3 rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
#############

 From the above, it seems that the kernel does not recognize the 
/mnt/fedora and /mnt/debian devices, even with LVM2 running.


The output of "lvmdump -a -m -u -d lvmdump.dump"
#############
root [ ~ ]# ls
dmesg.out  junk1  junkjunk  junkjunkjunk  junkstartup  lvmdump.dump
root [ ~ ]# cd lvmdump.dump
root [ ~/lvmdump.dump ]# grep -r fedora *

dev_listing  dmsetup_info  dmsetup_ls_tree  dmsetup_status dmsetup_table 
  lvm  lvmdump.log  lvs  messages  metadata  ps_info pvs  pvscan 
sysblock_listing  udev  versions  vgs  vgscan
root [ ~/lvmdump.dump ]# grep -r fedora *
lvm/archive/vg_alan-fedora_00000-1199893596.vg:vg_alan-fedora {
lvm/archive/vg_alan-fedora_00000-1199893596.vg: creation_host = 
"alan-fedora.alandomain"
lvm/archive/vg_alan-fedora_00000-1199893596.vg: creation_host = 
"alan-fedora.alandomain"
lvm/archive/vg_alan-fedora_00000-1199893596.vg: creation_host = 
"alan-fedora.alandomain"
lvm/backup/vg_alan-fedora:vg_alan-fedora {
lvm/backup/vg_alan-fedora:                      creation_host = 
"alan-fedora.alandomain"
lvm/backup/vg_alan-fedora:                      creation_host = 
"alan-fedora.alandomain"
lvm/backup/vg_alan-fedora:                      creation_host = 
"alan-fedora.alandomain"
lvmdump.log:    Finding volume group "vg_alan-fedora"
lvs:  lv_home vg_alan-fedora -wi------ 468.75g 
                   /dev/sda2(0)
lvs:  lv_root vg_alan-fedora -wi------ 50.00g 
                  /dev/sda2(15167)
lvs:  lv_swap vg_alan-fedora -wi------ 5.22g 
                 /dev/sda2(15000)
Binary file metadata/sda2 matches
pvs:  /dev/sda2  vg_alan-fedora lvm2 a--  1.36t 872.78g   1.36t 
1i5CQF-pcQi-vJtA-ioBl-JgCR-kG3Z-0XY8Kb
pvscan:  PV /dev/sda2   VG vg_alan-fedora   lvm2 [1.36 TiB / 872.78 GiB 
free]
vgs:  vg_alan-fedora wz--n- 32.00m   1   3   0 1.36t 872.78g 
p0mTPY-20TL-McjI-kPQY-1ktc-cp2V-CnUe9Q
vgscan:#format_text/format-text.c:1190         /dev/sda2: Found metadata 
at 8704 size 1713 (in area at 4096 size 1044480) for vg_alan-fedora 
(p0mTPY-20TL-McjI-kPQY-1ktc-cp2V-CnUe9Q)
vgscan:#cache/lvmcache.c:1336         lvmcache: /dev/sda2: now in VG 
vg_alan-fedora with 1 mdas
vgscan:#cache/lvmcache.c:1113         lvmcache: /dev/sda2: setting 
vg_alan-fedora VGID to p0mTPY20TLMcjIkPQY1ktccp2VCnUe9Q
vgscan:#cache/lvmcache.c:1373         lvmcache: /dev/sda2: VG 
vg_alan-fedora: Set creation host to alan-fedora.alandomain.
vgscan:#toollib.c:489     Finding volume group "vg_alan-fedora"
vgscan:#locking/file_locking.c:236       Locking 
/var/lock/lvm/V_vg_alan-fedora RB
vgscan:#locking/file_locking.c:141         _do_flock 
/var/lock/lvm/V_vg_alan-fedora:aux WB
vgscan:#locking/file_locking.c:51         _undo_flock 
/var/lock/lvm/V_vg_alan-fedora:aux
vgscan:#locking/file_locking.c:141         _do_flock 
/var/lock/lvm/V_vg_alan-fedora RB
vgscan:#metadata/vg.c:59         Allocated VG vg_alan-fedora at 0x999af48.
vgscan:#format_text/format-text.c:522         Read vg_alan-fedora 
metadata (4) from /dev/sda2 at 8704 size 1713
vgscan:  Found volume group "vg_alan-fedora" using metadata type lvm2
vgscan:#format_text/archiver.c:130     Archiving volume group 
"vg_alan-fedora" metadata (seqno 4).
vgscan:#format_text/archiver.c:410     Creating volume group backup 
"/etc/lvm/backup/vg_alan-fedora" (seqno 4).
vgscan:#format_text/format-text.c:932         Writing vg_alan-fedora 
metadata to /etc/lvm/backup/.lvm_lfs-alan_1709_980092212
vgscan:#format_text/format-text.c:976         Committing vg_alan-fedora 
metadata (4)
vgscan:#format_text/format-text.c:977         Renaming 
/etc/lvm/backup/vg_alan-fedora.tmp to /etc/lvm/backup/vg_alan-fedora
vgscan:#locking/file_locking.c:74       Unlocking 
/var/lock/lvm/V_vg_alan-fedora
vgscan:#locking/file_locking.c:51         _undo_flock 
/var/lock/lvm/V_vg_alan-fedora
vgscan:#metadata/vg.c:74         Freeing VG vg_alan-fedora at 0x999af48.
root [ ~/lvmdump.dump ]# cd ..
#############

Doing grep -r fedora above shows that LVM2 is recognizing SOMETHING 
about "/dev/sda2 /mnt/fedora".

Again, any help will be much appreciated.

Alan


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to