Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-30-2010, 05:15 AM
|
#1
|
Member
Registered: Nov 2007
Posts: 207
Rep:
|
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
|
|
|
12-30-2010, 05:19 AM
|
#2
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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
|
|
|
12-30-2010, 08:33 AM
|
#3
|
Member
Registered: Nov 2007
Posts: 207
Original Poster
Rep:
|
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-
|
|
|
12-30-2010, 08:44 AM
|
#4
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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
|
|
|
12-30-2010, 08:45 AM
|
#5
|
Member
Registered: Nov 2007
Posts: 207
Original Poster
Rep:
|
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.
|
|
|
12-30-2010, 08:51 AM
|
#6
|
Member
Registered: Nov 2007
Posts: 207
Original Poster
Rep:
|
Using Networker full backup is taken like all subtree of /.
|
|
|
12-30-2010, 09:11 AM
|
#7
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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:
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
|
|
|
12-30-2010, 11:33 AM
|
#8
|
Member
Registered: Nov 2007
Posts: 207
Original Poster
Rep:
|
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.
|
|
|
12-30-2010, 11:39 AM
|
#9
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
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.
|
|
|
12-30-2010, 11:50 AM
|
#10
|
Member
Registered: Nov 2007
Posts: 207
Original Poster
Rep:
|
recovered journel..
Right now I am not in my office, will let you know the exact screen shot.
Brgds,
Shankar
|
|
|
12-30-2010, 12:02 PM
|
#11
|
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
|
Hello,
OK, thanks, let's hope you can get it up and running again.
Kind regards,
Eric
|
|
|
All times are GMT -5. The time now is 09:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|