[linux-lvm] trying to pvcreate

Heinz J . Mauelshagen mauelshagen at sistina.com
Wed Nov 7 07:47:02 UTC 2001


Fabiano,

the debug output shows a read error on /dev/hda3 which is strange if it is
a valid device.

In case you have a 2.96 gcc compiler, you might suffer from its optimizer flaws.
If so, please try to compile LVM without optimization by changing '-O2'
to '-O0' in LVMs configure script, regenerate and reinstall.

Regards,
Heinz    -- The LVM Guy --


On Mon, Nov 05, 2001 at 12:20:16PM -0200, Fabiano Fantini Vitale wrote:
> Hi,
> 
> when I  try to perform a pvcreate a segmentation fault error 
> occur. I'm using kernel 2.4.12-BOOT, iop10 and lvm-1.0.1
> thanks for any help
> 
> /* logs */
> pvcreate /dev/hda3
> 
> <1> lvm_get_iop_version -- CALLED
> <22> lvm_check_special -- CALLED
> <22> lvm_check_special -- LEAVING
> <1> lvm_get_iop_version -- AFTER ioctl ret: 0
> <1> lvm_get_iop_version -- LEAVING with ret: 10
> <1> lvm_lock -- CALLED
> <22> lvm_check_special -- CALLED
> <22> lvm_check_special -- LEAVING
> <1> lvm_lock -- LEAVING with ret: 0
> <1> pv_check_name -- CALLED with "/dev/hda3"
> <22> lvm_check_chars -- CALLED with name: "/dev/hda3"
> <22> lvm_check_chars -- LEAVING with ret: 0
> <22> lvm_check_dev -- CALLED
> <333> lvm_check_partitioned_dev -- CALLED
> <4444> lvm_get_device_type called
> <4444> lvm_get_device_type leaving with 0
> <333> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <22> lvm_check_dev -- LEAVING with ret: 1
> <1> pv_check_name -- LEAVING with ret: 0
> <1> pv_get_size -- CALLED with /dev/hda3 and 0xbffffa48
> <22> lvm_dir_cache -- CALLED
> <333> lvm_add_dir_cache -- CALLED with /dev/hda
> <4444> lvm_check_dev -- CALLED
> <55555> lvm_check_partitioned_dev -- CALLED
> <666666> lvm_get_device_type called
> <666666> lvm_get_device_type leaving with 0
> <55555> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <4444> lvm_check_dev -- LEAVING with ret: 1
> <333> lvm_add_dir_cache -- LEAVING with ret: ADDED
> <333> lvm_add_dir_cache -- CALLED with /dev/hda1
> <4444> lvm_check_dev -- CALLED
> <55555> lvm_check_partitioned_dev -- CALLED
> <666666> lvm_get_device_type called
> <666666> lvm_get_device_type leaving with 0
> <55555> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <4444> lvm_check_dev -- LEAVING with ret: 1
> <333> lvm_add_dir_cache -- LEAVING with ret: ADDED
> <333> lvm_add_dir_cache -- CALLED with /dev/hda2
> <4444> lvm_check_dev -- CALLED
> <55555> lvm_check_partitioned_dev -- CALLED
> <666666> lvm_get_device_type called
> <666666> lvm_get_device_type leaving with 0
> <55555> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <4444> lvm_check_dev -- LEAVING with ret: 1
> <333> lvm_add_dir_cache -- LEAVING with ret: ADDED
> <333> lvm_add_dir_cache -- CALLED with /dev/hda2
> <4444> lvm_check_dev -- CALLED
> <55555> lvm_check_partitioned_dev -- CALLED
> <666666> lvm_get_device_type called
> <666666> lvm_get_device_type leaving with 0
> <55555> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <4444> lvm_check_dev -- LEAVING with ret: 1
> <333> lvm_add_dir_cache -- LEAVING with ret: NOT ADDED
> <22> lvm_dir_cache -- LEAVING with ret: 3
> <22> lvm_dir_cache_find -- CALLED with /dev/hda3
> <333> pv_check_name -- CALLED with "/dev/hda3"
> <4444> lvm_check_chars -- CALLED with name: "/dev/hda3"
> <4444> lvm_check_chars -- LEAVING with ret: 0
> <4444> lvm_check_dev -- CALLED
> <55555> lvm_check_partitioned_dev -- CALLED
> <666666> lvm_get_device_type called
> <666666> lvm_get_device_type leaving with 0
> <55555> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <4444> lvm_check_dev -- LEAVING with ret: 1
> <333> pv_check_name -- LEAVING with ret: 0
> <333> lvm_dir_cache -- CALLED
> <333> lvm_dir_cache -- LEAVING with ret: 3
> <22> lvm_dir_cache_find -- LEAVING with entry: -1
> <22> pv_get_dev_size -- CALLED with /dev/hda3 and 0xbffffa48
> <22> pv_get_dev_size -- LEAVING with ret: 0
> <1> pv_get_size -- LEAVING with ret: 0
> <1> pv_create_kdev_t -- CALLED with "/dev/hda3"
> <22> pv_check_name -- CALLED with "/dev/hda3"
> <333> lvm_check_chars -- CALLED with name: "/dev/hda3"
> <333> lvm_check_chars -- LEAVING with ret: 0
> <333> lvm_check_dev -- CALLED
> <4444> lvm_check_partitioned_dev -- CALLED
> <55555> lvm_get_device_type called
> <55555> lvm_get_device_type leaving with 0
> <4444> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <333> lvm_check_dev -- LEAVING with ret: 1
> <22> pv_check_name -- LEAVING with ret: 0
> <1> pv_create_kdev_t -- LEAVING with ret: 303
> <1> lvm_check_partitioned_dev -- CALLED
> <22> lvm_get_device_type called
> <22> lvm_get_device_type leaving with 0
> <1> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <1> lvm_partition_count -- CALLED for 0x303
> <22> lvm_get_device_type called
> <22> lvm_get_device_type leaving with 0
> <1> lvm_partition_count -- LEAVING with ret: 16
> <1> lvm_dir_cache -- CALLED
> <1> lvm_dir_cache -- LEAVING with ret: 3
> <1> pv_read -- CALLED with /dev/hda3
> <22> pv_check_name -- CALLED with "/dev/hda3"
> <333> lvm_check_chars -- CALLED with name: "/dev/hda3"
> <333> lvm_check_chars -- LEAVING with ret: 0
> <333> lvm_check_dev -- CALLED
> <4444> lvm_check_partitioned_dev -- CALLED
> <55555> lvm_get_device_type called
> <55555> lvm_get_device_type leaving with 0
> <4444> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <333> lvm_check_dev -- LEAVING with ret: 1
> <22> pv_check_name -- LEAVING with ret: 0
> <22> pv_read_already_red -- CALLED with PV /dev/hda3
> <22> pv_read_already_red -- LEAVING with ret: 0
> <22> pv_flush -- CALLED to flush /dev/hda3
> <333> pv_check_name -- CALLED with "/dev/hda3"
> <4444> lvm_check_chars -- CALLED with name: "/dev/hda3"
> <4444> lvm_check_chars -- LEAVING with ret: 0
> <4444> lvm_check_dev -- CALLED
> <55555> lvm_check_partitioned_dev -- CALLED
> <666666> lvm_get_device_type called
> <666666> lvm_get_device_type leaving with 0
> <55555> lvm_check_partitioned_dev -- LEAVING with ret: TRUE
> <4444> lvm_check_dev -- LEAVING with ret: 1
> <333> pv_check_name -- LEAVING with ret: 0
> <22> pv_flush -- LEAVING with ret: 0
> <1> pv_read -- going to read /dev/hda3
> <1> pv_read -- LEAVING with ret: -282
> <1> pv_check_active -- CALLED
> Segmentation Fault
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the linux-lvm mailing list