09-01-2009
fsck.gfs2 outputs "RG recovery impossible; I can't fix this file system"
I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck:
fsck.gfs2 -y /dev/vg_01/uss_vol
This returned the following output (in part):
Block #3518628215 (0xd1ba0177) (21 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628216 (0xd1ba0178) (22 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628217 (0xd1ba0179) (23 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628218 (0xd1ba017a) (24 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628219 (0xd1ba017b) (25 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628220 (0xd1ba017c) (26 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628221 (0xd1ba017d) (27 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628222 (0xd1ba017e) (28 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3518628223 (0xd1ba017f) (29 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
Block #3519021440 (0xd1c00180) (33 of 33) is neither GFS2_METATYPE_RB nor GFS2_METATYPE_RG.
Attempting to repair the RG.
(level 2 failed)
Level 3 RG check.
RG 2 is damaged: getting dist from index: 0x26a2e
* RG 1 at block 0x11 *** DAMAGED *** [length 0x26a2e]
RG 2 at block 0x26A3F intact [length 0x12a]
* RG 3 at block 0x26B69 *** DAMAGED *** [length 0x12a]
* RG 4 at block 0x26C93 *** DAMAGED *** [length 0x12a]
* RG 5 at block 0x26DBD *** DAMAGED *** [length 0x12a]
Error: too many bad RGs.
Error rebuilding rg list.
(level 3 failed)
RG recovery impossible; I can't fix this file system.
Now when I try to mount the file system I recieve the following output
[root@host/]# mount /123
/sbin/mount.gfs2: error mounting /dev/mapper/vg_01-123_vol on /123: No such file or directory
/123 exists
The etc/fstab line is:
/dev/vg_01/123_vol /123 gfs2 noatime 1 2
That line is the dame on all other hosts and is verified to be correct.
Any ideas how to get this FS mounted?
10 More Discussions You Might Find Interesting
1. Programming
I tried to install OpenMotif under Mac OS in the computing lab today, but I got "No mountable file system". Is it because I don't have the administrator's privilege? (0 Replies)
Discussion started by: endeavour1985
0 Replies
2. UNIX for Advanced & Expert Users
We have some CentOS systems with ext3 filesystems that (on occasion) experiences long power failures that are longer than the UPS can handle. We run an fsck on the file systems at every boot, and sometimes they will come back on after a power failure, and when fsck runs there are tens of thousands... (0 Replies)
Discussion started by: nothsa
0 Replies
3. UNIX for Advanced & Expert Users
dear fellows;
i have used ld.so.preload file to override connect() function, dynamic library overriding, it did worked really fine ......
but i went on to struck in a situation ... within the overrided connect() i have used printf once to see IP and Port to whom the connect request is being... (1 Reply)
Discussion started by: mzeeshan
1 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Shell Programming and Scripting
hello All,
I am new user to shell scripting, kindly advise on the below?
I have a file where i have gaps & the delimiter falls in next line and new line is also created , plz see the example :employee.txt
Now the issue here is , i wan to write a script , where i can use "|" to get the... (6 Replies)
Discussion started by: sunnyd1
6 Replies
6. Shell Programming and Scripting
Hi,
- From Script :
echo "************************************"
echo "NEW_ORACLE_SID : " ${NEW_ORACLE_SID}
echo "************************************"
echo "" >> /auto_clone/${NEW_ORACLE_SID}/logs/clone_PERP12R.log
echo... (4 Replies)
Discussion started by: htaieb1
4 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello experts!
I need your help please
I have a file.txt of which I want to extract 3rd and 4th columns with date with the form e.g.:
2016-11-25 03:14:50and pass them to "date" command, but also append the 9th column in a file as well.
So I want to execute
date -d '2016-11-25 03:14:50' ... (2 Replies)
Discussion started by: phaethon
2 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
10. UNIX for Beginners Questions & Answers
Cannot present unpresented disks back again. On a test server tried this as a solution "multipath -r" and it worked. Too worried to try it in production before I know all the information.
Any info would be appreciated!
Also some links to the documentation on this specific issue could help a... (1 Reply)
Discussion started by: jsteppe
1 Replies
LEARN ABOUT DEBIAN
stg-repair
STG-REPAIR(1) StGit Manual STG-REPAIR(1)
NAME
stg-repair - Fix StGit metadata if branch was modified with git commands
SYNOPSIS
stg repair
DESCRIPTION
If you modify an StGit stack (branch) with some git commands -- such as commit, pull, merge, and rebase -- you will leave the StGit
metadata in an inconsistent state. In that situation, you have two options:
1. Use "stg undo" to undo the effect of the git commands. (If you know what you are doing and want more control, "git reset" or similar
will work too.)
2. Use "stg repair". This will fix up the StGit metadata to accomodate the modifications to the branch. Specifically, it will do the
following:
o If you have made regular git commits on top of your stack of StGit patches, "stg repair" makes new StGit patches out of them,
preserving their contents.
o However, merge commits cannot become patches; if you have committed a merge on top of your stack, "repair" will simply mark all
patches below the merge unapplied, since they are no longer reachable. If this is not what you want, use "stg undo" to get rid of
the merge and run "stg repair" again.
o The applied patches are supposed to be precisely those that are reachable from the branch head. If you have used e.g. "git reset"
to move the head, some applied patches may no longer be reachable, and some unapplied patches may have become reachable. "stg
repair" will correct the appliedness of such patches.
"stg repair" will fix these inconsistencies reliably, so as long
as you like what it does, you have no reason to avoid causing
them in the first place. For example, you might find it
convenient to make commits with a graphical tool and then have
"stg repair" make proper patches of the commits.
Note
If using git commands on the stack was a mistake, running "stg repair" is not what you want. In that case, what you want is option (1)
above.
STGIT
Part of the StGit suite - see linkman:stg[1]
StGit 03/13/2012 STG-REPAIR(1)