[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] My LVM does not work at all.



LVM does not work at all. I have tried LVM as a modules and as compiled in
driver. All in vain. I started last sunday or monday with 2.4.19-pre10 with and
without Alan Cox patch number 2 and with and without preemptible patch by Robert
Love. Now, few days later I am totally frustrated and mad.

My latest attempts was this:

- Kernel 2.4.18
- Patches from LVM sources version 1.0.4

I use Debian GNU/Linux 3.0 Woody on a x86. I also use devfs and devfsd.
Versions of LVM-tools is this:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version   Description
+++-==============-=========-===================================================
ii  lvm-common     1.5.5     The Logical Volume Manager for Linux (common files)
ii  lvm10          1.0.4-4   The Logical Volume Manager for Linux


And now: Let the show begin:

-=*[ROOT ZSH]*=- root heresy:/root # uname -a
Linux heresy 2.4.18-LVM-1.0.4 #2 Wed Jun 12 21:16:17 EEST 2002 i586 unknown
-=*[ROOT ZSH]*=- root heresy:/root # dmesg | grep LVM
Linux version 2.4.18-LVM-1.0.4 (root heresy) (gcc version 3.0.4) #2 Wed Jun 12 21:16:17 EEST 2002
LVM version 1.0.4(02/05/2002)
-=*[ROOT ZSH]*=- root heresy:/root # tree /proc/lvm/
/proc/lvm/
|-- VGs
`-- global


1 directory, 1 file
-=*[ROOT ZSH]*=- root heresy:/root # cat /proc/lvm/global 
LVM driver LVM version 1.0.4(02/05/2002)

Total:  0 VGs  0 PVs  0 LVs (0 LVs open)
Global: 143 bytes malloced   IOP version: 10   5:47:14 active
-=*[ROOT ZSH]*=- root heresy:/root # pvcreate --version
pvcreate: Logical Volume Manager 1.0.4
Heinz Mauelshagen, Sistina Software  02/05/2002 (IOP 10)
-=*[ROOT ZSH]*=- root heresy:/root # pvcreate -d -v /dev/scsi/host0/bus0/target0/lun0/part3
<1> lvm_get_iop_version -- CALLED
<22> lvm_check_special -- CALLED
<22> lvm_check_special -- LEAVING
<1> lvm_get_iop_version -- AFTER ioctl ret: -102
<1> lvm_get_iop_version -- LEAVING with ret: -102
pvcreate -- LVM driver/module not loaded?

zsh: 5602 exit 95    pvcreate -d -v /dev/scsi/host0/bus0/target0/lun0/part3
-=*[ROOT ZSH]*=- root heresy:/root # pvcreate -f -d -v /dev/scsi/host0/bus0/target0/lun0/part3
<1> lvm_get_iop_version -- CALLED
<22> lvm_check_special -- CALLED
<22> lvm_check_special -- LEAVING
<1> lvm_get_iop_version -- AFTER ioctl ret: -102
<1> lvm_get_iop_version -- LEAVING with ret: -102
pvcreate -- LVM driver/module not loaded?

zsh: 5606 exit 95    pvcreate -f -d -v /dev/scsi/host0/bus0/target0/lun0/part3
-=*[ROOT ZSH]*=- root heresy:/root # ls -la /dev/lvm
crw-r-----    1 root     root     109,   0 Jun 13  2002 /dev/lvm
-=*[ROOT ZSH]*=- root heresy:/root # file /dev/lvm
/dev/lvm: character special (109/0)

And now something completely different:

strace -o /tmp/lvm.err.2.log pvcreate -f -d -v /dev/scsi/host0/bus0/target0/lun0/part3

execve("/sbin/pvcreate", ["pvcreate", "-f", "-d", "-v", "/dev/scsi/host0/bus0/target0/lun0/part3"], [/* 78 vars */]) = 0
uname({sys="Linux", node="heresy", ...}) = 0
brk(0)                                  = 0x8049bf4
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=60644, ...}) = 0
old_mmap(NULL, 60644, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40023000
mprotect(0x40136000, 40160, PROT_NONE)  = 0
old_mmap(0x40136000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x113000) = 0x40136000
old_mmap(0x4013c000, 15584, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4013c000
close(3)                                = 0
munmap(0x40014000, 60644)               = 0
stat64("/dev/lvm", {st_mode=S_IFCHR|0640, st_rdev=makedev(109, 0), ...}) = 0
open("/dev/lvm", O_RDONLY)              = -1 ENOSYS (Function not implemented)
open("/dev/lvm", O_RDONLY)              = -1 ENOSYS (Function not implemented)
open("/dev/lvm", O_RDONLY)              = -1 ENODEV (No such device)
stat64("/lib/lvm-default/pvcreate", {st_mode=S_IFREG|0755, st_size=13036, ...}) = 0
execve("/lib/lvm-default/pvcreate", ["pvcreate", "-f", "-d", "-v", "/dev/scsi/host0/bus0/target0/lun"...], [/* 78 vars */]) = 0
uname({sys="Linux", node="heresy", ...}) = 0
brk(0)                                  = 0x804becc
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=60644, ...}) = 0
old_mmap(NULL, 60644, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/liblvm-10.so.1", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0T\0\000"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0644, st_size=219908, ...}) = 0
old_mmap(NULL, 235008, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40023000
mprotect(0x40058000, 17920, PROT_NONE)  = 0
old_mmap(0x40058000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x34000) = 0x40058000
old_mmap(0x4005a000, 9728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4005a000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\222"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1153784, ...}) = 0
old_mmap(NULL, 1166560, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005d000
mprotect(0x40170000, 40160, PROT_NONE)  = 0
old_mmap(0x40170000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x113000) = 0x40170000
old_mmap(0x40176000, 15584, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40176000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4017a000
munmap(0x40014000, 60644)               = 0
open("/etc/lvmtab", O_RDONLY)           = 3
close(3)                                = 0
open("/etc/lvmtab.d", O_RDONLY)         = 3
close(3)                                = 0
open("/dev/lvm", O_RDONLY)              = -1 ENOSYS (Function not implemented)
open("/dev/lvm", O_RDONLY)              = -1 ENOSYS (Function not implemented)
open("/dev/lvm", O_RDONLY)              = -1 ENODEV (No such device)
open("/etc/lvmtab", O_RDONLY)           = 3
fstat64(3, {st_mode=S_IFREG|0640, st_size=1, ...}) = 0
brk(0)                                  = 0x804becc
brk(0x804beec)                          = 0x804beec
brk(0x804c000)                          = 0x804c000
read(3, "\0", 1)                        = 1
close(3)                                = 0
write(2, "<1> lvm_get_iop_version -- CALLE"..., 34) = 34
write(2, "<22> lvm_check_special -- CALLED"..., 33) = 33
stat64("/dev/lvm", {st_mode=S_IFCHR|0640, st_rdev=makedev(109, 0), ...}) = 0
write(2, "<22> lvm_check_special -- LEAVIN"..., 34) = 34
open("/dev/lvm", O_RDONLY)              = -1 ENOSYS (Function not implemented)
open("/dev/lvm", O_RDONLY)              = -1 ENOSYS (Function not implemented)
open("/dev/lvm", O_RDONLY)              = -1 ENODEV (No such device)
write(2, "<1> lvm_get_iop_version -- AFTER"..., 49) = 49
write(2, "<1> lvm_get_iop_version -- LEAVI"..., 50) = 50
write(2, "pvcreate -- LVM driver/module no"..., 43) = 43
_exit(95)                               = ?




-- 
Juhapekka "naula" Tolvanen * * http://www.st.jyu.fi/~juhtolv/
"Pettymystä kahmalolla, on ammennettu sovinnolla ja laarit
vastoinkäymisien eivät ehdy aivan hetimmiten. Vaan kun multaa
suussa maistuu, on katkeruus jäänyt taa."             Viikate



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]