LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-30-2010, 05:15 AM   #1
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Rep: Reputation: 15
Exclamation df -h not showing the file system


Hello Friends,

I have install 5.5 kernel in rhel and after rebooting got the error to control+d to continue or root password. I have done the same but df -h not showing the lvm filesystem.
I have tried to remounnt but showing resource busy.
I have rebooted on the previous kernel but getting the same issue.
Its a VM.

df -h showing only /dev/mapper/vg_osdata-lv_root /

Kindly suggest!!

Brgds,
Shankar
 
Old 12-30-2010, 05:19 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

5.5 is not the kernel version of RHEL, but the distro version number, so to say correctly you have RHEL5.5 installed and it uses kernel 2.6.18. The problem you have is that your filesystem has been corrupted in some way, maybe unclean shutdown. When the console presents you the 'Control+D' option, type in the root password and run fsck on the filesystems affected to try to repair them. Have a look at the man page of fsck for what option(s) to use.

Kind regards,

Eric
 
Old 12-30-2010, 08:33 AM   #3
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
Hi Eric,

You are right. I have done the same but not succeed.
Can we recover by backup or do we need to create vm then recover the data?
I want to escape from creating vm..

Thanks-
 
Old 12-30-2010, 08:44 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

It depends on how you created the backup. If you created an exact image for example with dd or with CloneZilla, then you can restore since the backup is at block level and not at filesystem level. If on the other hand you used a tool / program for example like Rsync or Bacula, then I'm afraid you'll first have to recreate your partitions and LVM group(s) and volume(s).

Kind regards,

Eric
 
Old 12-30-2010, 08:45 AM   #5
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
Even we can't mount the mount point manually. But I can find the fdisk -l with filesystem.
also can get info about pvdisplay, vgdisplay and lvdisplay.
I can also go into that mount point using cd and ls the contents. But still not showing using df -h.
 
Old 12-30-2010, 08:51 AM   #6
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
Using Networker full backup is taken like all subtree of /.
 
Old 12-30-2010, 09:11 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What was the result of fsck in maintenance mode? Or didn't you run that?

You could check with the following:
Code:
pvscan
lvscan
lvchange -ay volume_group_name
lvscan
and after that run a fsck on the logical volumes
Code:
fsck -t type /dev/mapper_name/volume_name
where of course you have to indicate the type of filesystem and the correct name of your volume.

You can also force a check by rebooting with the following options and see what it does on screen:
Code:
shutdown -r -F now
Don't have knowledge of Networker backup but if it does backup as subtree of / then it's not at block level and you'll need to make your LVM available first or rebuild it I'm afraid.

Kind regards,

Eric
 
Old 12-30-2010, 11:33 AM   #8
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
already done the mentioned steps and got the proper output. But no luck. Rebooted with init 6 and reboot command only.

Last edited by JATA01; 12-30-2010 at 11:35 AM.
 
Old 12-30-2010, 11:39 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

And what was the output when you forced the check? Was there any error mentioned and if so, what was it? When you say you performed the proper steps, to what are you referring? Running the fsck on the logical volumes? If so, what was the result?

Kind regards,

Eric

Last edited by EricTRA; 12-30-2010 at 11:42 AM.
 
Old 12-30-2010, 11:50 AM   #10
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
recovered journel..

Right now I am not in my office, will let you know the exact screen shot.

Brgds,
Shankar
 
Old 12-30-2010, 12:02 PM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

OK, thanks, let's hope you can get it up and running again.

Kind regards,

Eric
 
  


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
Fedora 7: system time not showing properly. LoveKing Fedora 4 07-17-2007 11:14 AM
system only showing less then 1/2 RAM lleb Linux - Software 8 02-01-2007 04:41 PM
system() showing text without print DanTaylor Programming 6 01-24-2006 05:14 PM
Screensavers showing in System Tools Drimo Fedora 0 03-14-2004 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:14 PM.

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