From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: Murthy Kambhampaty <Murthy.Kambhampaty@goeci.com>
Cc: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Volume group not found on restart [resent]
Date: Wed May 22 03:48:02 2002 [thread overview]
Message-ID: <20020522104412.C9107@sistina.com> (raw)
In-Reply-To: <E631530D51ABD411B823009027855C5B0278B1@THOR>; from Murthy.Kambhampaty@goeci.com on Thu, May 16, 2002 at 12:46:48PM -0400
Murthy,
in order to help you further, please send me (mge@sistina.com)
the follwing output (file db_vol.vgda) bzip2 compressed:
dd if=/dev/dev/rd/c0d0p6 of=db_vol.vgda bs=1k count=4k
Thanks,
Heinz
On Thu, May 16, 2002 at 12:46:48PM -0400, Murthy Kambhampaty wrote:
> Heinz, yes, the init scripts run vgscan and vgchange, and report the error.
> Also, finding that the vg was not recognized and the lv was not mounted, I
> tried to do it manually, and got the same error. For your info, the messages
> generated by vgscan in debug mode (#/sbin/vgscan -d &> help.txt) are
> attached. Note that the LV is "data_dir" on the vg "db_vol" on the pv
> /dev/rd/c0d0p6.
>
> Thanks for the help,
> Murthy
>
> > -----Original Message-----
> > From: Heinz J . Mauelshagen [mailto:mauelshagen@sistina.com]
> > Sent: Thursday, May 16, 2002 10:25
> > To: linux-lvm@sistina.com
> > Subject: Re: [linux-lvm] Volume group not found on restart
> >
> >
> >
> > Murthy,
> >
> > did you try 'vgscan' before 'vgchange -ay' before 'mount'?
> >
> > Regards,
> > Heinz -- The LVM Guy --
> >
> > On Tue, May 14, 2002 at 02:14:33PM -0400, Murthy Kambhampaty wrote:
> > > Indeed, yes. Output with -d option attached:
> > >
> > > # /sbin/vgchange -a y -d
> > > <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> lvm_tab_vg_check_exist_all_vg -- CALLED
> > > <22> lvm_tab_read -- CALLED
> > > <22> lvm_tab_read -- LEAVING with ret: 0 data: 804D460 size: 1
> > > <1> lvm_tab_vg_check_exist_all_vg -- LEAVING with ret: 0
> > > vgchange -- no volume groups found
> > >
> > > <1> lvm_unlock -- CALLED
> > > <1> lvm_unlock -- LEAVING with ret: 0
> > >
> > > This is what let me to check the VGDA backups in
> > /etc/lvmconf, and the
> > > output from "/sbin/vgcfgrestore -t -d -n db_vol -ll" is
> > reported in my
> > > original message (see copy below).
> > >
> > > Thanks for the help,
> > > Murthy
> > >
> > > > -----Original Message-----
> > > > From: John Moser [mailto:jmoser@erc.wisc.edu]
> > > > Sent: Tuesday, May 14, 2002 14:10
> > > > To: Murthy Kambhampaty
> > > > Cc: 'linux-lvm@sistina.com'
> > > > Subject: Re: [linux-lvm] Volume group not found on restart
> > > >
> > > >
> > > > Just a quick glance over your problem (I'm not too familiar
> > > > with the rest
> > > > of your problem). But the most common reason for that
> > > > particular error
> > > > (not a valid block device), is because the volume group
> > isn't active.
> > > > Have you tried:
> > > >
> > > > vgchange -a y
> > > >
> > > > first, and then try to mount your filesystem?
> > > >
> > > > -John
> > > >
> > > >
> > > > On Tue, 14 May 2002, Murthy Kambhampaty wrote:
> > > >
> > > > > I have an unexpected error reading an LV:
> > > > >
> > > > > # mount -a
> > > > > mount: /dev/db_vol/db_dir is not a valid block device
> > > > >
> > > > > I'd like help recovering the data on the partition.
> > > > Information about the
> > > > > circumstance under which I first got the error, and some
> > > > addtional info are
> > > > > attached below. The system is a RH7.2 system installed with
> > > > the XFS1.0.2a
> > > > > installer and updated to the XFS CVS kernel from April 4.
> > > > (LVM version in
> > > > > kernel with LVM tools from lvm-tools-1.0.1rc4-2 rpm).
> > > > >
> > > > > Thanks for the help,
> > > > > Murthy
> > > > >
> > > > > Addtional information follows:
> > > > >
> > > > > I have a VG called "db_vol" and an LV within called
> > > > "db_dir" on a hardware
> > > > > RAID-5 volume hanging off a Mylex Acceleraid 352 raid
> > > > controller (linux
> > > > > DAC960 driver). This volume has been up and functional,
> > with an XFS
> > > > > filesystem for a while (the last VGDA backup is from March
> > > > 21). Yesterday, I
> > > > > added a new RAID set and did a test on the new volume
> > > > (defined a single
> > > > > (linux native) primaly partition and XFS filesystem on the
> > > > partition then
> > > > > mounted the partition to /mnt/tempmnt) with "time dd=/dev/zero
> > > > > of=/mnt/tempmnt/mungie.txt bs=512k count=10000". This led
> > > > to my system
> > > > > slowing down and at logout I got an error message saying
> > > > init was spawning
> > > > > ttys too fast. I power-cycled my machine after a short
> > > > wait, with gritted
> > > > > teeth, and on the XFS check message, I chose "yes" to
> > > > recheck the integrity
> > > > > of the XFS filesystems. The unexpected error message has
> > > > been produced since
> > > > > then.
> > > > >
> > > > > vgdisplay output for the volume is:
> > > > >
> > > > > # /sbin/vgdisplay -d db_vol
> > > > > <1> lvm_check_kernel_lvmtab_consistency -- CALLED
> > > > > <22> vg_check_active_all_vg -- CALLED
> > > > > <333> vg_status_get_count -- CALLED
> > > > > <333> vg_status_get_count -- LEAVING with ret: 0
> > > > > <22> vg_check_active_all_vg -- LEAVING with ret: -331
> > ptr: (null)
> > > > > <22> lvm_tab_vg_check_exist_all_vg -- CALLED
> > > > > <333> lvm_tab_read -- CALLED
> > > > > <333> lvm_tab_read -- LEAVING with ret: 0 data:
> > 804B4A0 size: 1
> > > > > <22> lvm_tab_vg_check_exist_all_vg -- LEAVING with ret: 0
> > > > > <1> lvm_check_kernel_lvmtab_consistency -- LEAVING with ret: 1
> > > > > <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> vg_check_name -- CALLED with VG: db_vol
> > > > > <22> lvm_check_chars -- CALLED with name: "db_vol"
> > > > > <22> lvm_check_chars -- LEAVING with ret: 0
> > > > > <1> vg_check_name -- LEAVING with ret: 0
> > > > > <1> lvm_tab_vg_check_exist -- CALLED with vg_name: "db_vol"
> > > > > <22> vg_check_name -- CALLED with VG: db_vol
> > > > > <333> lvm_check_chars -- CALLED with name: "db_vol"
> > > > > <333> lvm_check_chars -- LEAVING with ret: 0
> > > > > <22> vg_check_name -- LEAVING with ret: 0
> > > > > <22> lvm_tab_read -- CALLED
> > > > > <22> lvm_tab_read -- LEAVING with ret: 0 data: 804B4A0 size: 1
> > > > > <1> lvm_tab_vg_check_exist -- LEAVING with ret: 0
> > > > > vgdisplay -- volume group "db_vol" not found
> > > > >
> > > > >
> > > > > When I check the db_vol.conf file in /etc/lvmconf, I get
> > > > "vgcfgrestore --
> > > > > ERROR: different structure size stored in
> > > > "/etc/lvmconf/db_vol.conf" than
> > > > > expected in file vg_cfgrestore.c [line 120]" (full command
> > > > output below).
> > > > >
> > > > > /sbin/vgcfgrestore -t -d -n db_vol -ll
> > > > > <1> vg_check_name -- CALLED with VG: db_vol
> > > > > <22> lvm_check_chars -- CALLED with name: "db_vol"
> > > > > <22> lvm_check_chars -- LEAVING with ret: 0
> > > > > <1> vg_check_name -- LEAVING with ret: 0
> > > > > <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> lvm_dont_interrupt -- CALLED
> > > > > <1> lvm_dont_interrupt -- LEAVING
> > > > > <1> vg_cfgrestore -- CALLED
> > > > > <22> vg_check_name -- CALLED with VG: db_vol
> > > > > <333> lvm_check_chars -- CALLED with name: "db_vol"
> > > > > <333> lvm_check_chars -- LEAVING with ret: 0
> > > > > <22> vg_check_name -- LEAVING with ret: 0
> > > > > vgcfgrestore -- ERROR: different structure size stored in
> > > > > "/etc/lvmconf/db_vol.conf" than expected in file
> > > > vg_cfgrestore.c [line 120]
> > > > > <1> vg_cfgrestore -- LEAVING with ret: -328
> > > > > <1> lvm_error -- CALLED with: -328
> > > > > <1> lvm_error -- LEAVING with: "vg_cfgrestore(): read"
> > > > > vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring
> > volume group
> > > > > "db_vol"
> > > > >
> > > > > <1> lvm_unlock -- CALLED
> > > > > <1> lvm_unlock -- LEAVING with ret: 0
> > > > >
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > linux-lvm mailing list
> > > > > linux-lvm@sistina.com
> > > > > http://lists.sistina.com/mailman/listinfo/linux-lvm
> > > > > read the LVM HOW-TO at
> http://www.sistina.com/lvm/Pages/howto.html
> > > >
> > >
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@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@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next parent reply other threads:[~2002-05-22 3:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E631530D51ABD411B823009027855C5B0278B1@THOR>
2002-05-22 3:48 ` Heinz J . Mauelshagen [this message]
2002-05-22 12:24 ` [linux-lvm] Volume group not found on restart [resent] Heinz J . Mauelshagen
2002-05-23 14:10 Murthy Kambhampaty
2002-05-24 3:37 ` Heinz J . Mauelshagen
-- strict thread matches above, loose matches on Subject: below --
2002-05-22 14:05 Murthy Kambhampaty
2002-05-23 12:15 ` Heinz J . Mauelshagen
2002-05-22 12:59 Murthy Kambhampaty
2002-05-22 13:25 ` Heinz J . Mauelshagen
2002-05-17 9:24 Murthy Kambhampaty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020522104412.C9107@sistina.com \
--to=mauelshagen@sistina.com \
--cc=Murthy.Kambhampaty@goeci.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox