LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2009, 06:28 AM   #16
tnl
LQ Newbie
 
Registered: Jul 2009
Distribution: vmware/centos5
Posts: 14

Original Poster
Rep: Reputation: 0
Question


Quote:
Originally Posted by unSpawn View Post
Make certain that you're not reading /var/lib/rpm because that's the root of your CDROM. Your LV devices are /dev/VolGroup00/LogVol00 and /dev/VolGroup00/LogVol01. If mounted automagically grep /proc/mounts for them else mount them manually wherever you like: 'mkdir /tmp/LogVol0{0,1}; for n in 0 1; do mount "/dev/VolGroup00/LogVol0$n" "/tmp/LogVol0$n"; done'. If you do that your DBPATH will be either /tmp/LogVol00/var/lib/rpm or /tmp/LogVol01/var/lib/rpm. So if the RPM database resides in /tmp/LogVol01/var/lib/rpm then the commandline should look like 'rpm --nodeps --nodigest --noscripts --nosignature --dbpath /tmp/LogVol01/var/lib/rpm --root /tmp/LogVol00/ -Vva 2>&1|tee -a /tmp/rpm_verify.log; rpm --nodeps --nodigest --noscripts --nosignature --dbpath /tmp/LogVol01/ --root /tmp/LogVol01/var/lib/rpm -Vva 2>&1|tee -a /tmp/rpm_verify.log ' because you should run it on both mount points.
ok i entered the command of `grep /proc/mounts` then i am rechecked if the lvm is mounted and then i wrote `rpm --nodeps --nodigest --noscripts --nosignature --dbpath /tmp/LogVol01/var/lib/rpm --root /tmp/LogVol00/ -Vva 2>&1|tee -a /tmp/rpm_verify.log; rpm --nodeps --nodigest --noscripts --nosignature --dbpath /tmp/LogVol01/ --root /tmp/LogVol01/var/lib/rpm -Vva 2>&1|tee -a /tmp/rpm_verify.log`

rpm_verify.log seems empty. Am i did something wrong?
 
Old 07-05-2009, 10:38 AM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by tnl View Post
ok i entered the command of `grep /proc/mounts`
That shouldn't return anything because you need to grep for something.


Quote:
Originally Posted by tnl View Post
then i am rechecked if the lvm is mounted
What is your mount point? If you didn't mount LogVol00 at /tmp/LogVol00/, then using "--root /tmp/LogVol00/" will show nothing. Then the rpm_verify.log will be empty.
 
Old 07-06-2009, 08:11 AM   #18
tnl
LQ Newbie
 
Registered: Jul 2009
Distribution: vmware/centos5
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
That shouldn't return anything because you need to grep for something.

What is your mount point? If you didn't mount LogVol00 at /tmp/LogVol00/, then using "--root /tmp/LogVol00/" will show nothing. Then the rpm_verify.log will be empty.

Ok then i am re-trying that:
i wrote your first command mentioned above and that is the outcome

[root@localhost ~]# mkdir /tmp/LogVol0{0,1}; for n in 0 1; do mount "/dev/VolGroup00/LogVol0$n" "/tmp/LogVol0$n"; done
mount: /dev/VolGroup00/LogVol00 already mounted or /tmp/LogVol00 busy
/dev/VolGroup00/LogVol01 looks like swapspace - not mounted
mount: you must specify the filesystem type

It means that he filesystem is already mounted right?
 
Old 07-06-2009, 09:44 AM   #19
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by tnl View Post
mount: /dev/VolGroup00/LogVol00 already mounted or /tmp/LogVol00 busy
(..)
It means that he filesystem is already mounted right?
You should be able to check that using the 'mount' command.
If you 'mount|grep LogVol' it could show:
- /dev/VolGroup00/LogVol00 being mounted on /tmp/LogVol00, or
- something different being mounted on /tmp/LogVol00, or
- /dev/VolGroup00/LogVol00 being mounted on another mount point.
As long as you can mount it anywhere where you can read the filesystem it's OK, just adjust the mount point in the commands you use. And since LogVol01 is a swap partition you do not have to mount it.

What does 'rpm --nodeps --nodigest --noscripts --nosignature --dbpath /tmp/LogVol00/var/lib/rpm -qa' return? If it returns package names all is OK. If it shows nothing then something is wrong and you should show the output of 'ls -al /tmp/LogVol00/var/lib/rpm'.

* At this point you are able to access the contents of your Logical Volume. It appears it takes more time to try to repair your VM guest than it took us to access it. So, if you can access your "valuable data" (I think that's what you wrote in your other thread) then you might also decide this is the time to cut your losses, copy the data and configuration to an external backup medium (say an USB stick or harddisk) and build a new VM guest. Just a suggestion, OK?
 
Old 07-07-2009, 08:32 AM   #20
tnl
LQ Newbie
 
Registered: Jul 2009
Distribution: vmware/centos5
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
You should be able to check that using the 'mount' command.
If you 'mount|grep LogVol' it could show:
- /dev/VolGroup00/LogVol00 being mounted on /tmp/LogVol00, or
- something different being mounted on /tmp/LogVol00, or
- /dev/VolGroup00/LogVol00 being mounted on another mount point.
As long as you can mount it anywhere where you can read the filesystem it's OK, just adjust the mount point in the commands you use. And since LogVol01 is a swap partition you do not have to mount it.

What does 'rpm --nodeps --nodigest --noscripts --nosignature --dbpath /tmp/LogVol00/var/lib/rpm -qa' return? If it returns package names all is OK. If it shows nothing then something is wrong and you should show the output of 'ls -al /tmp/LogVol00/var/lib/rpm'.

* At this point you are able to access the contents of your Logical Volume. It appears it takes more time to try to repair your VM guest than it took us to access it. So, if you can access your "valuable data" (I think that's what you wrote in your other thread) then you might also decide this is the time to cut your losses, copy the data and configuration to an external backup medium (say an USB stick or harddisk) and build a new VM guest. Just a suggestion, OK?
I am installed a new server and i copied all the important data from the old server to the new server and now all is ok!
Thanks a lot again..
 
Old 07-07-2009, 08:35 AM   #21
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
You're welcome. Please don't forget to mark this thread [SOLVED].
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant mount "group descriptors corrupted!" Nonc Linux - Hardware 6 08-18-2008 04:37 AM
"URGENT" help needed bamboo2 Linux - Newbie 9 01-24-2007 12:08 AM
EXT3-fs:group descriptors corrupted! (GNU/RH9) jjlune Linux - General 13 04-16-2006 04:38 PM
EXT3-fs: group descriptors corrupted dadriver Linux - Hardware 2 02-04-2006 03:16 AM
EXt3-fs:group descriptors corrupted. anjanesh Fedora 0 11-15-2004 12:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration