LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2018, 10:09 AM   #16
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled

So this just happened...

Code:
#umount /mnt/sysimage
#umount: Couldn't umount /mnt/sysimage: Inappropriate ioctl for device
 
Old 02-11-2018, 10:12 AM   #17
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by SomeITguy View Post
So this just happened...

Code:
#umount /mnt/sysimage
#umount: Couldn't umount /mnt/sysimage: Inappropriate ioctl for device
You need to restart your machine and boot it off of a "live CD"/RHEL build disk/etc. Then run fsck on the disk/partition in question.
 
Old 02-11-2018, 10:17 AM   #18
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
You need to restart your machine and boot it off of a "live CD"/RHEL build disk/etc. Then run fsck on the disk/partition in question.
That's what I'm doing right now. I used the RHEL build disc to boot in Rescue Mode. Filesystem was mounted to /mnt/sysimage so I'm trying to unmount to run fsck. You know what? I'll just reboot and run the Rescue Mode again but this time I'll skip the mounting and just fsck /dev/VolGroup00/LogVol00

Sound good?
 
Old 02-11-2018, 10:21 AM   #19
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by SomeITguy View Post
That's what I'm doing right now. I used the RHEL build disc to boot in Rescue Mode. Filesystem was mounted to /mnt/sysimage so I'm trying to unmount to run fsck. You know what? I'll just reboot and run the Rescue Mode again but this time I'll skip the mounting and just fsck /dev/VolGroup00/LogVol00

Sound good?
Sounds really good.

That was your mistake... mounting it. Let fsck do it's work before mounting it.
 
Old 02-11-2018, 10:33 AM   #20
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Well, that didn't go as I hoped for. Looks like if I skip the "find and mount your filesystem" part then there is no /dev/VolGroup00/LogVol00
 
Old 02-11-2018, 10:40 AM   #21
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by SomeITguy View Post
Well, that didn't go as I hoped for. Looks like if I skip the "find and mount your filesystem" part then there is no /dev/VolGroup00/LogVol00
It looks like it creates another device node for your RAID volume, when you mount it. I was afraid of something like that.

So now we need to work out WHICH device node is for the disk/partition in question. Can you describe the RAID setup you have, eg. how many disks, partitions, which RAID level, etc?

Also run the following command and post the output:

Code:
ls -la /dev/md*

Last edited by jsbjsb001; 02-11-2018 at 10:42 AM.
 
Old 02-11-2018, 10:48 AM   #22
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
It looks like it creates another device node for your RAID volume, when you mount it. I was afraid of something like that.

So now we need to work out WHICH device node is for the disk/partition in question. Can you describe the RAID setup you have, eg. how many disks, partitions, which RAID level, etc?

Also run the following command and post the output:

Code:
ls -la /dev/md*
Beforing checking for replies I tried this:
Code:
#lvm lvchange -a y /dev/VolGroup00/LogVol00
After that I could confirm with lvm lvscan that /dev/VolGroup00/LogVol00 was now active, but then this happened when I tried to fsck:

Code:
#fsck /dev/VolGroup00/LogVol00
#fsck: WARNING: couldn't open /etc/fstab: no such file or directory
#/dev/VolGroup00/LogVol00: clean, 106094/518356992 files, 65944159/51834060 ks

Last edited by SomeITguy; 02-11-2018 at 10:49 AM. Reason: typo
 
Old 02-11-2018, 11:12 AM   #23
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
From below it looks like it's saying your file system is clean.

Code:
#/dev/VolGroup00/LogVol00: clean, 106094/518356992 files, 65944159/51834060 ks
Once you have gotten as much of your database recovered as you can, you can also further check your file system with the following command:

Code:
fsck -fy /dev/devicenodehere
Replace "devicenodehere" with the right device node.
 
Old 02-11-2018, 11:14 AM   #24
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
From below it looks like it's saying your file system is clean.
That's what I thought at first, but how can that be possible? It didn't do or scan anything, it didn't even take a second after I pressed ENTER and that was the output.

Last edited by SomeITguy; 02-11-2018 at 11:14 AM. Reason: typo
 
Old 02-11-2018, 11:31 AM   #25
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by SomeITguy View Post
That's what I thought at first, but how can that be possible? It didn't do or scan anything, it didn't even take a second after I pressed ENTER and that was the output.
It may have cleared it's journal the last time you mounted it. As you have found, Linux systems generally do a file system check when you start the system and it goes to mount the disk/partition.

You can also run the command I mentioned in my last post, but I would un-mount the drive first beforehand.

Have your database guys got it recovered yet?
 
Old 02-11-2018, 11:43 AM   #26
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
Have your database guys got it recovered yet?
They just tried and still nothing.
As soon as I finish lunch I'll try fsck -fy as suggedted.
 
Old 02-11-2018, 11:59 AM   #27
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by SomeITguy View Post
They just tried and still nothing.
As soon as I finish lunch I'll try fsck -fy as suggedted.
Well, good luck with it.

If you type in the command below, you should be able to find out which device node is for the partition in question.

Code:
fdisk -l
For your LVM volumes it should look something like this:

Code:
/dev/sda5 660611072 1709187071 524288000 8e Linux LVM
Some of the numbers will be a little different, that's all. The important bit your looking for is in bold. That's the device node your after - the one at the start of the line (/dev/XXX).
 
Old 02-11-2018, 12:41 PM   #28
SomeITguy
LQ Newbie
 
Registered: Feb 2018
Posts: 18

Original Poster
Rep: Reputation: Disabled
Well, I'm guessing this is the end of the line. With fsck -fy it took a while, did 5 passes and at the end of the output it said:
Code:
/dev/VolGroup00/LogVol00: 106074/518356992 (3.5% non-contiguous), 659/518340608 blocks
I don't know if there's something else to try other than salvage whatever tables/columns can be read from the database

Last edited by SomeITguy; 02-11-2018 at 12:41 PM. Reason: typo
 
Old 02-11-2018, 01:13 PM   #29
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by SomeITguy View Post
Well, I'm guessing this is the end of the line. With fsck -fy it took a while, did 5 passes and at the end of the output it said:
Code:
/dev/VolGroup00/LogVol00: 106074/518356992 (3.5% non-contiguous), 659/518340608 blocks
I don't know if there's something else to try other than salvage whatever tables/columns can be read from the database
Then unfortunately... yes, trying to get whatever tables you can from the database, looks like your only real option as far as I can see.

Best of luck with it.
 
  


Reply



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
[SOLVED] system:unexpected inconsistency; RUN fsck Manually nitsss Linux - Newbie 3 07-25-2016 07:37 AM
[SOLVED] UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. JoseKreif Linux - Newbie 21 06-30-2016 06:13 AM
[SOLVED] /dev/sda3: unexpected inconsistency; execute fsck manually. vienswuer Linux - Newbie 11 05-16-2014 01:02 PM
Unexpected inconsistency, run fsck manually twangchuk Linux - Newbie 2 06-12-2009 09:51 AM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 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