Menu

#22 evms not creating device nodes?

open
None
5
2015-02-26
2004-08-24
Lane Bryson
No

Hello,
I think the problem is more complicated than that.

I asked for help on the gentoo linux forums, but
received none. I think that my question is a little
too shotgun-style for the novice user; unfortunately, I
don't know which information is the most relevant to
the person trying to help me, and I don't have a firm
enough grasp on the problem to have narrowed down what
the problem is (despite spending long hours trying to
get it to work). Please see the complete question (read
that "plea for help") neatly formatted at this url:

http://forums.gentoo.org/viewtopic.php?t=212371

Unformatted follows:

---------------------------------------------
I appreciate very, very deeply any help you may be able
to provide. I'll give as much detail as I can think of
so you'll have all the facts, and to save time.

First I'll say I think I've done due dilligence to
solve the problem myself: I've looked at every thread
in the forums that mentions evms since Jan. 2002
(including the evms mini-howto and gentoo lvm2 install
guide), and googled, too. I came across a few issues
that looked similar in the evms forums, but none that
were close
enough or offered solutions that worked.

I have no devices show up under /dev/evms. Only:
/dev/evms/dm
/dev/evms/dm/control
/dev/evms/.nodes
/dev/evms/.nodes/hda
^^^^^^^^^^^^^^^^^^^^ not sure what that last one (hda)
actually means specifically. cat'ing it indicates that
it is, in fact, a raw device. But other posts and doc
uments don't mention a .nodes directory tree iirc.

evmsn, the ncurses interface to evms2, was able to do a
few functions, but now I can't save any more changes:
every time I try to "quit and save", it gives errors:
"Save failed. No such device"
and /var/log/evms-daemon.log has no errors -- only
startup stop errors. /var/log/evms-engine.log has lots
of errors from when I started evmsn (which apparently sta
rts the evms engine and also notices the changes that I
made before with evmsn, but was unable to save):
Code:
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
Engine version: 2.3.4
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
External API version: 9.0.0
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
Engine services version: 13.0.0
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
Plug-in API version: 12.0.0
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
Container API version: 9.0.0
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
FSIM API version: 10.0.0
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
Cluster API version: 1.0.0
Aug 20 01:19:33 real-01 _5_ Engine: evms_open_engine:
Daemon protocol version: 3.0.0
Aug 20 01:19:33 real-01 _5_ Engine: dm_check_version:
Device-Mapper interface version: 4.1.0
Aug 20 01:19:33 real-01 _5_ Engine:
load_module_plugins: Loaded from
/lib/evms/2.3.4/xfs-1.0.8.so.
Aug 20 01:19:33 real-01 _5_ Engine:
load_module_plugins: short name: XFS
Aug 20 01:19:33 real-01 _5_ Engine:
load_module_plugins: long name: XFS File System
Interface Module
Aug 20 01:19:33 real-01 _5_ Engine:
load_module_plugins: version: 1.0.8
(lots of messages about other modules that are loaded)
Aug 20 01:19:33 real-01 _5_ Engine:
load_module_plugins: Loaded from
/lib/evms/2.3.4/lvm-1.1.10.so.
Aug 20 01:19:33 real-01 _3_ Engine: do_fork_and_execvp:
execvp() failed. errno is 2: No such file or directory
Aug 20 01:19:33 real-01 _3_ Engine: do_fork_and_execvp:
execvp() failed. errno is 2: No such file or directory
Aug 20 01:19:33 real-01 _2_ OGFS: ogfs_exec_utility:
mkfs.ogfs completed with exit code 2
Aug 20 01:19:33 real-01 _5_ JFS: fsim_test_version:
mkfs.jfs test version completed with exit code 0
Aug 20 01:19:33 real-01 _5_ JFS: fsim_test_version: JFS
utilities version: 1.1.4
Aug 20 01:19:33 real-01 _3_ Engine: engine_open_object:
Open of /dev/evms/.nodes/hde failed with error code 30:
Read-only file system
(note: /dev/hde is cdrom drive. I'll have to remember
to filter that in /etc/evms.conf)
Aug 20 01:19:33 real-01 _3_ Engine: engine_open_object:
Open of /dev/evms/.nodes/ram0 failed with error code
22: Invalid argument
Aug 20 01:19:33 real-01 _3_ Engine: engine_open_object:
Open of /dev/evms/.nodes/ram1 failed with error code
22: Invalid argument
(note: above is repeated for ram2 through ram15)
Aug 20 01:19:34 real-01 _5_ LvmRegMgr:
lvm_allocate_logical_volume: Created region
lvm/lvmcont1/Freespace
Aug 20 01:19:34 real-01 _5_ LvmRegMgr:
lvm_allocate_logical_volume: Created region
lvm/lvmcont1/lvmreg1
Aug 20 01:19:34 real-01 _5_ LvmRegMgr:
lvm_allocate_logical_volume: Created region
lvm/lvmcont1/lvmreg2
Aug 20 01:19:34 real-01 _5_ LvmRegMgr:
lvm_export_logical_volumes: Exporting region
lvm/lvmcont1/Freespace
Aug 20 01:19:34 real-01 _5_ LvmRegMgr:
lvm_export_logical_volumes: Exporting region
lvm/lvmcont1/lvmreg1
Aug 20 01:19:34 real-01 _5_ LvmRegMgr:
lvm_export_logical_volumes: Exporting region
lvm/lvmcont1/lvmreg2
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda3 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda3
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda2
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda1
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda3 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda3
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda2
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda1
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda3 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda3
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda2
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda1
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda3 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda3
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda2
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object hda1
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda3 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object hda3
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object hda2
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object hda1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object hda1
to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDLinearRegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid1RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid0RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MDRaid5RegMgr:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg1 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg1 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: engine_open_object:
Object lvm/lvmcont1/lvmreg2 does not have a non-zero major.
Aug 20 01:19:34 real-01 _2_ MD Multipath:
md_ioctl_flush_buffer_cache: Unable to open object
lvm/lvmcont1/lvmreg2 to send ioctl
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:34 real-01 _5_ Engine: initial_discovery:
Discovery time: 00:00:00.536030
And then when I try to "Save" changes that I made
previously:
Code:
Aug
20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda1
needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda2
needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda3
needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda4
needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object
lvm/lvmcont1/lvmreg1 needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object
lvm/lvmcont1/lvmreg2 needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object
lvm/lvmcont1/lvmreg1#origin# needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/evmsvol1 needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/evmsvol1 is not active.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda1 needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda1 is not active.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda2 needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda2 is not active.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda3 needs to be activated.
Aug 20 01:19:49 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda3 is not active.
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object lvm/lvmcont1/lvmreg1:
No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object hda1: No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object hda2: No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object hda3: No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object hda4: No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object lvm/lvmcont1/lvmreg1: No such
device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object lvm/lvmcont1/lvmreg2: No such
device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object lvm/lvmcont1/lvmreg1:
No such device
Aug 20 01:19:51 real-01 _3_ Engine: activate: Error
code 19 activating object lvm/lvmcont1/lvmreg1#origin#:
No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:51 real-01 _3_ Engine: activate_object:
Error code 19 activating object lvm/lvmcont1/lvmreg1:
No such device
Aug 20 01:19:51 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object hda1: No such device
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object hda2: No such device
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object hda3: No such device
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object hda4: No such device
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object lvm/lvmcont1/lvmreg1: No such
device
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object lvm/lvmcont1/lvmreg2: No such
device
Aug 20 01:19:52 real-01 _2_ Engine: run_command_v4:
Error returned from ioctl call: 22: Invalid argument.
Aug 20 01:19:52 real-01 _3_ Engine: activate_object:
Error code 19 activating object hda4: No such device
Aug 20 01:19:52 real-01 _3_ Engine: activate_object:
Error code 19 activating object lvm/lvmcont1/lvmreg1:
No such device
Aug 20 01:19:52 real-01 _3_ Engine: activate: Error
code 19 activating object lvm/lvmcont1/lvmreg1#origin#:
No such device
Aug 20 01:19:52 real-01 _3_ Engine: evms_rediscover:
activate() returned error code 19: No such device
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
Aug 20 01:19:52 real-01 _2_ Engine: ensure_dev_node:
Major:minor 0:0 is not valid.
And then when I quit without saving:
Code:
Aug 20 01:20:05 real-01 _5_ Engin
e: is_object_change_pending: Change pending: Object
hda1 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda2
needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda3
needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object hda4
needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object
lvm/lvmcont1/lvmreg1 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object
lvm/lvmcont1/lvmreg2 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_object_change_pending: Change pending: Object
lvm/lvmcont1/lvmreg1#origin# needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/evmsvol1 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/evmsvol1 is not active.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda1 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda1 is not active.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda2 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda2 is not active.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda3 needs to be activated.
Aug 20 01:20:05 real-01 _5_ Engine:
is_volume_change_pending: Change pending: Volume
/dev/evms/hda3 is not active.

grep dev /var/log/messages |grep 'Aug 20 01:19' gives:
Code:
Aug 20 01:19:51 real-01 device-mapper: : dm-linear:
Device lookup failed
Aug 20 01:19:51 real-01 device-mapper: error adding
target to table
(repeated for a total of 22 times)

Nothing occured at 01:20 in /var/log/messages.

grepping for evms and lvm in /var/log/messages for
events at 01:19 and 01:20 show nothing.

/etc/init.d/evms start fails with the following error
at the terminal window:
Error returned from evms_commit_changes(): No such device

with the same errors as given above (when starting the
engine with evmsn) logged in /var/log/evms-engine.log.

grep dev /var/log/messages gives the following from
when I ran vgscan; the first time it segfaulted, the
second time it succeeded.:
Code:
Aug 20 01:01:04 real-01 devfs_mk_dir: invalid
argument.<4>devfs_mk_dev: could not append to parent
for /disc
Aug 20 01:01:04 real-01 devfs_mk_dir: invalid
argument.<4>devfs_mk_dev: could not append to parent
for /disc
(repeated lots and lots)
Aug 20 01:01:06 real-01 devfs_mk_dir: invalid
argument.<4>devfs_mk_dev: could not append to parent
for /disc
Aug 20 01:11:32 real-01 device-mapper: : dm-linear:
Device lookup failed
Aug 20 01:11:32 real-01 device-mapper: error adding
target to table
Aug 20 01:11:32 real-01 device-mapper: : dm-linear:
Device lookup failed
Aug 20 01:11:32 real-01 device-mapper: error adding
target to table
Aug 20 01:11:32 real-01 device-mapper: : dm-linear:
Device lookup failed
Aug 20 01:11:32 real-01 device-mapper: error adding
target to table
Aug 20 01:11:32 real-01 device-mapper: : dm-linear:
Device lookup failed

I've got one drive, "hda", which shows up as /dev/hda
-> /dev/ide/host0/bus0/target0/lun0/disc
It is partitioned using fdisk to have /dev/hda1 (ext3)
= /boot , /dev/hda2 (reiserfs) = / , /dev/hda3 (swapfs)
, and a fourth partition ("segment") was apparently c
reated using evmsn (the ncurses interface to evms2) at
/dev/hda4 using the DosSegMg.

So, find /dev |grep hda yields:
/dev/evms/.nodes/hda
/dev/hda
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hda4

and ls -la /dev |grep hda shows that:
/dev/hda -> ide/host0/bus0/target0/lun0/disc
/dev/hda1 -> ide/host0/bus0/target0/lun0/part1
/dev/hda2 -> ide/host0/bus0/target0/lun0/part2
/dev/hda3 -> ide/host0/bus0/target0/lun0/part3
/dev/hda4 -> ide/host0/bus0/target0/lun0/part4

I've run vgscan over the course of my trouble-shooting,
so the evmsn-created volumes, "lvmreg1" (lvm2 region)
and "lvmreg2" (snapshot region that points at lvmreg1)
, were identified by lvm2. ls -laR /dev/lvmcont1 (which
is the name of the lvm container I created in /dev/hda
following the official evms howto) shows that:
lvmreg1 -> /dev/mapper/lvmcont1-lvmreg1
lvmreg2 -> /dev/mapper/lvmcont1-lvmreg2

and ls -laR /dev/mapper shows that there are (not
sym-links):
control
lvmcont1-lvmreg1
lvmcont1-lvmreg2

The error at boot-up that seems to indicate the core
problem comes when evms2 is loading in when entering
the default runlevel (3), from (I think) devfsd, though re
startingloading evms2 later does not produce the same
error message:
twice the error:
Error calling "unlink" in "GLOBAL"

I'm not sure if it's a problem with devfs(d) or evms,
given the "unlink" devfs(d?) init message I provided above.

Or, maybe it's some kind of conflict between evms2 and
lvm2? Notably, init loads evms2 before it loads lvm2.

I've been trying for weeks with
gentoo-dev-sources-2.6.7-r4, r6, r11, and r12, with no
luck, to get /dev/evms/hda or any actual volumes to
show up under evms., with
no luck.
.
I've got evms (evms2, I assume, as the original evms is
deprecated; the help in menuconfig doesn't offer any
specific info), LVM2, D-M, and md support compiled stat
ically into the kernel. (All the examples use evms2 as
a module, but the overhead of using it as a module
seems unnecessary,) Raid 0, 1, and 5 support are kernel mo
dules. Whether the raid modules are loaded or not does
not affect the outcome.

the lvm2 user-land utilities and evms utilities are at
the latest versions: 2.00.08 and 2.3.4-r1,
respectively. The lvm2 ebuild compiled just fine with
my kernel,
despite what another post in the forums from July
indicated: that lvm2 will not compile at all with 2.6.7
kernel headers.

I'm not sure if it's a problem with devfs(d) or evms,
given the "unlink" devfs(d?) init message I provided above.

My /etc/evms.conf is all default settings (i.e. it
scans /dev looking for "disc" devices)

I've deleted all my evmsn-created containers and
started over several times, following the various evms
how-to's step-by-step -- it's definitely a problem with evm
s, not the container configuration I want to make; even
creating.

So, evms won't start because it's remembering some
changes I tried to commit before. (/dev/hda4 should
actually be /dev/evms/evmsvol1 , as shown in evmsn.)
evmsn also says that hda1 through hda3 should be in
/dev/evms/ , or something. From the evmsn:

screen 0: Logical Volumes:
Code:
/dev/evms/evmsvol1 25.0 GB
/dev/evms/hda1 95.9 MB
/dev/evms/hda2 11.2 GB
/dev/evms/hda3 1.4 GB

screen 1: Available Objects:
Code:
snapofevmsvol1 25.0 GB Plugin:Snapshot

screen 2: Feature Objects:
Code:
lvm/lvmcont1/lvmreg1#origin# 25.0 GB
Plugin:Snapshot
snapofevmsvol1 25.0 GB
Plugin:Snapshot

screen 3: Storage Regions:
Code:
lvm/lvmcont1/lvmreg1 25.0 GB LvmRegMgr
lvm/lvmcont1/lvmreg2 25.0 GB LvmRegMgr
lvm/lvmcont1/Freespace 49.5 GB LvmRegMgr

screen 4: Storage Containers:
Code:
lvm/lvmcont1 98.5 GB LvmRegMgr

screen 5: Disk Segments:
Code:
hda_mbr 31 KB
Meta Data 0
DosSegMgr
hda1 95.9 MB
Data 63
DosSegMgr
hda2 11.2 GB
Data 196560
DosSegMgr
hda3 1.4 GB
Data 23634576
DosSegMgr
hda4 99.0 GB
Data 26564832
DosSegMgr
hda_freespace1 75.3 MB
Free Space 234287424
DosSegMgr

screen 6: Logical Disks:
Code:
Name
Size Dirty Active R/O Geometry
Plug-in
hda 111.8
GB X 65535,16,63
LocalDskMgr

Discussion

  • Kevin Corry

    Kevin Corry - 2004-08-24

    Logged In: YES
    user_id=206722

    Please see the EVMS FAQ, question 2.
    http://evms.sourceforge.net/faq.html
    This should address your "missing dev-nodes" issue.

    If you still have questions, please send an email to
    evms-devel@lists.sf.net.

     
  • Kevin Corry

    Kevin Corry - 2004-08-24
    • assigned_to: nobody --> kcorry
     
  • Lane Bryson

    Lane Bryson - 2004-08-24

    Logged In: YES
    user_id=227750

    Holy cow, all the research I did, and I missed a FAQ. Or
    maybe I was too tired at the time. Thank you very, very
    much for pointing me in the right direction. (side note:
    it's a bummer to me that evms is (apparently, apart from a
    backwards patch) an all-or-nothing deal on a per-disk basis.)

    I may or may not go evms all-the-way -- will have to think
    about it. I'll follow up on my gentoo forums thread.

    Thanks again.

     
  • Lane Bryson

    Lane Bryson - 2004-08-24
    • status: open --> closed
     
  • Ali Asad Lotia

    Ali Asad Lotia - 2004-08-25

    Logged In: YES
    user_id=201218

    EVMS is not an all or nothing deal. So you can safely have a
    non-evms volume that is treated like a compatibility volume
    by evms (i.e. a regular / or /boot partition) and you just
    have to mount it using the evms device name. also you will
    need to use the evms initrd to boot. also make sure you are
    not using udev, evms and udev are not good at working
    together in my experience.

    thanks to kevin corry for clarifying this for me when i had
    questions.
    ali

     
  • Lane Bryson

    Lane Bryson - 2004-09-02
    • status: closed --> open
     
  • Lane Bryson

    Lane Bryson - 2004-09-02

    Logged In: YES
    user_id=227750

    ... Now, I've added a second drive (hdc) and used evmsn to set up basic segments, containers and volumes as per the evms guide.

    But trying to start evms (/etc/init.d/evms start in gentoo) fails because it is still trying to commit the hda changes( but failing).

    HDA is my main drive, does not use evms, and I don't want hda to use evms. No device nodes exist for hda in /dev/evms . I tried several combinations of having hda (hda1 ...hda4) in the exclude list in /etc/evms.conf, as well as explicitly including *only* hdc and hdc? (if that matters) in the same file.

    No luck. How do I make evms realize that it doesn't get to muck with my other drive(s), after it's already got it in its head that it should be managing them?

    Thanks in advance

    P.S./O.T.:(/dev is marked as deprecated in the 2.6 kernel, and udev is the blessed child for the future. I've been told there are interoperability problems between evms and udev. So, should I leave sysfs out of my kernel?

     
  • Kevin Corry

    Kevin Corry - 2004-09-02

    Logged In: YES
    user_id=206722

    Make sure you are specifying the include and exclude lists
    in the correct section of the EVMS config file. There are
    two appropriate sections: legacy_devices for 2.4 kernels,
    and sysfs_devices for 2.6 kernels. If you're running 2.6,
    make sure you're using the appropriate section of the EVMS
    config file.

    There is no way to leave sysfs out of the kernel. It is
    always built in. And I'm not aware of any incompatibilities
    between EVMS and udev.

     
  • Lane Bryson

    Lane Bryson - 2004-09-07

    Logged In: YES
    user_id=227750

    Thank you for helping me. Still no luck. You suggested:
    -------
    "Make sure you are specifying the include and exclude lists
    in the correct section of the EVMS config file."
    -------

    This is my entire /etc/evms.conf, minus #'d out lines:

    -------

    engine {
    mode = readwrite
    debug_level = default
    log_file = /var/log/evms-engine.log
    }
    daemon {
    debug_level = default
    log_file = /var/log/evms-daemon.log
    }
    devices {
    scan = /dev
    directories = [ ide scsi dasd ]
    include = [ hd? sd? dasd? disc? ]
    exclude = [ hda disc0 ]
    }
    sysfs_devices {
    include = [ * ]
    exclude = [ hda ]
    }
    csm {
    }
    multipath {
    }

    ------

    Also, note that I am using kernel 2.6.7 with devfs support
    compiled in (if that matters here).

    When trying to start the evms services (via gentoo's
    /etc/init.d/evms start) I get "Error returned from
    evms_commit_changes() : No such device".

    I have two ide hard drives -- each is an ide disk in an
    external ide<-->sata enclosure, plugged into a pci sata
    card. I want hda to be left alone by evms, and hdc to be
    managed by evms. hde is an ide dvd-rw drive, which plugs
    into the motherboard's integrated ide controller.

    find /dev/evms shows:
    /dev/evms
    /dev/evms/dm
    /dev/evms/dm/control
    /dev/evms/.nodes
    /dev/evms/.nodes/hdc
    /dev/evms/.nodes/hdc1
    /dev/evms/.nodes/hdc2
    /dev/evms/.nodes/hdc3
    /dev/evms/evmsvol-boot

    but like I said, starting evms fails, and evmsui and evmsn
    are unable to save some of the changes (I guess?) because of
    the " Engine: ensure_dev_node: Major:minor 0:0 is not
    valid." error.

    Thanks again for your help -- I'm still trying to get this
    running.

    What useful information can I provide?

     
  • Lane Bryson

    Lane Bryson - 2004-09-07

    Logged In: YES
    user_id=227750

    narrowed it down -- seems to be related to LVM objects:
    The following object has been successfully created and saved:
    -----------
    Major Number 0
    Minor Number 0
    Region Name lvm/lvmcont1/Freespace
    Container Name lvm/lvmcont1
    Region Number 0
    Region Size 99.9 GB
    Logical Extents 1598
    Access Permissions No-Access
    -----------------
    But I create a region in it (with evmsn) (an LVM Region),
    and when I "Save", I get:
    "Save failed. No such device"
    Delete the newly (unsaved) created region, and I can "save"
    just fine.

    first error occurs when trying to save an

     
  • Lane Bryson

    Lane Bryson - 2004-09-07

    Logged In: YES
    user_id=227750

    after successfully starting evms (after deleting everything
    I could through evmsn), and then creating three segments
    (two compatibility volumes and a bbr region), this is
    /var/log/evms-engine.log after the plugins info:
    ---------------
    Sep 07 00:28:55 real-01 _3_ Engine: do_fork_and_execvp:
    execvp() failed. errno is 2: No such file or directory
    Sep 07 00:28:55 real-01 _2_ OGFS: ogfs_exec_utility:
    mkfs.ogfs completed with exit code 2
    Sep 07 00:28:55 real-01 _5_ JFS: fsim_test_version: mkfs.jfs
    test version completed with exit code 0
    Sep 07 00:28:55 real-01 _5_ JFS: fsim_test_version: JFS
    utilities version: 1.1.4
    Sep 07 00:28:55 real-01 _5_ LvmRegMgr:
    lvm_allocate_logical_volume: Created region
    lvm/lvmcont1/Freespace
    Sep 07 00:28:55 real-01 _5_ LvmRegMgr:
    lvm_export_logical_volumes: Exporting region
    lvm/lvmcont1/Freespace
    Sep 07 00:28:55 real-01 _2_ Engine: ensure_dev_node:
    Major:minor 0:0 is not valid.
    Sep 07 00:28:55 real-01 _5_ Engine: initial_discovery:
    Discovery time: 00:00:00.320936
    Sep 07 00:28:55 real-01 _2_ Engine: run_command_v4: Error
    returned from ioctl call: 22: Invalid argument.
    Sep 07 00:28:55 real-01 _3_ Engine: activate: Error code 19
    activating object hdc3_bbr: No such device
    Sep 07 00:28:55 real-01 _2_ Engine: run_command_v4: Error
    returned from ioctl call: 22: Invalid argument.
    Sep 07 00:28:55 real-01 _3_ Engine: activate: Error code 19
    activating object hdc3_bbr: No such device
    Sep 07 00:28:55 real-01 _3_ Engine: evms_rediscover:
    activate() returned error code 19: No such device
    Sep 07 00:28:55 real-01 _2_ Engine: ensure_dev_node:
    Major:minor 0:0 is not valid.
    -----------------------

    So, even though through evmsn I can "Save", there's actually
    a problem that evmsn isn't telling me about.

    And it still seems to me to be related to evms not creating
    or properly handling the device nodes for on this evms-only
    disk.

     

Log in to post a comment.

Monday.com Logo