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
bup-fsck
bup-fsck(1) General Commands Manual bup-fsck(1)
NAME
bup-fsck - verify or repair a bup repository
SYNOPSIS
bup fsck [-r] [-g] [-v] [--quick] [-j jobs] [--par2-ok] [--disable-par2] [filenames...]
DESCRIPTION
bup fsck is a tool for validating bup repositories in the same way that git fsck validates git repositories.
It can also generate and/or use "recovery blocks" using the par2(1) tool (if you have it installed). This allows you to recover from dam-
aged blocks covering up to 5% of your .pack files.
In a normal backup system, damaged blocks are less important, because there tends to be enough data duplicated between backup sets that a
single damaged backup set is non-critical. In a deduplicating backup system like bup, however, no block is ever stored more than once,
even if it is used in every single backup. If that block were to be unrecoverable, all your backup sets would be damaged at once. Thus,
it's important to be able to verify the integrity of your backups and recover from disk errors if they occur.
WARNING: bup fsck's recovery features are not available unless you have the free par2(1) package installed on your bup server.
WARNING: bup fsck obviously cannot recover from a complete disk failure. If your backups are important, you need to carefully consider
redundancy (such as using RAID for multi-disk redundancy, or making off-site backups for site redundancy).
OPTIONS
-r, --repair
attempt to repair any damaged packs using existing recovery blocks. (Requires par2(1).)
-g, --generate
generate recovery blocks for any packs that don't already have them. (Requires par2(1).)
-v, --verbose
increase verbosity (can be used more than once).
--quick
don't run a full git verify-pack on each pack file; instead just check the final checksum. This can cause a significant speedup
with no obvious decrease in reliability. However, you may want to avoid this option if you're paranoid. Has no effect on packs
that already have recovery information.
-j, --jobs=numjobs
maximum number of pack verifications to run at a time. The optimal value for this option depends how fast your CPU can verify packs
vs. your disk throughput. If you run too many jobs at once, your disk will get saturated by seeking back and forth between files
and performance will actually decrease, even if numjobs is less than the number of CPU cores on your system. You can experiment
with this option to find the optimal value.
--par2-ok
immediately return 0 if par2(1) is installed and working, or 1 otherwise. Do not actually check anything.
--disable-par2
pretend that par2(1) is not installed, and ignore all recovery blocks.
EXAMPLE
# generate recovery blocks for all packs that don't
# have them
bup fsck -g
# generate recovery blocks for a particular pack
bup fsck -g ~/.bup/objects/pack/153a1420cb1c8*.pack
# check all packs for correctness (can be very slow!)
bup fsck
# check all packs for correctness and recover any
# damaged ones
bup fsck -r
# check a particular pack for correctness and recover
# it if damaged
bup fsck -r ~/.bup/objects/pack/153a1420cb1c8*.pack
# check if recovery blocks are available on this system
if bup fsck --par2-ok; then
echo "par2 is ok"
fi
SEE ALSO
bup-damage(1), fsck(1), git-fsck(1)
BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown- bup-fsck(1)