No Volumes No Shares - Superblock Issue?

Re: No Volumes No Shares - Superblock Issue?

Postby NigelBrownless » Wed Dec 18, 2024 11:10 am

Code: Select all
xfs_repair -n /dev/md4

Is running....It reported an issue with the Superblock, and is now trying to find a backup Superblock.
Currently just showing lots of "dots" on the Console, but it still looking.

Will keep you posted...
NigelBrownless
 
Posts: 46
Joined: Mon Nov 04, 2024 2:19 pm

Re: No Volumes No Shares - Superblock Issue?

Postby NigelBrownless » Wed Dec 18, 2024 2:53 pm

Final Output.....
Code: Select all
........................................................................................................
..................found candidate secondary superblock...
error reading superblock 17 -- seek to offset 2123235655680 failed
unable to verify superblock, continuing...
found candidate secondary superblock...
verified secondary superblock...
would write modified primary superblock
Primary superblock would have been modified.
Cannot proceed further in no_modify mode.
Exiting now.
NigelBrownless
 
Posts: 46
Joined: Mon Nov 04, 2024 2:19 pm

Re: No Volumes No Shares - Superblock Issue?

Postby fvdw » Wed Dec 18, 2024 3:09 pm

well it seems to be happy with one of the secondary superblocks so I would suggest run xfs_repair without the -n option and keep fingers crossed
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: No Volumes No Shares - Superblock Issue?

Postby NigelBrownless » Wed Dec 18, 2024 3:18 pm

OK....Will initiate that now, and feedback when complete.
NigelBrownless
 
Posts: 46
Joined: Mon Nov 04, 2024 2:19 pm

Re: No Volumes No Shares - Superblock Issue?

Postby NigelBrownless » Wed Dec 18, 2024 9:46 pm

Output as follows....
Code: Select all
.........found candidate secondary superblock...
error reading superblock 17 -- seek to offset 2123235655680 failed
unable to verify superblock, continuing...
found candidate secondary superblock...
verified secondary superblock...
writing modified primary superblock
sb realtime bitmap inode 18446744073709551615 (NULLFSINO) inconsistent with calculated value 129
resetting superblock realtime bitmap ino pointer to 129
sb realtime summary inode 18446744073709551615 (NULLFSINO) inconsistent with calculated value 130
resetting superblock realtime summary ino pointer to 130

fatal error -- couldn't allocate block map, size = 121968988
NigelBrownless
 
Posts: 46
Joined: Mon Nov 04, 2024 2:19 pm

Re: No Volumes No Shares - Superblock Issue?

Postby fvdw » Wed Dec 18, 2024 9:53 pm

pity not yet succes, it seems to set back to AG value to the wrong one and then we get same error as before.
Lets have a look what it has written to the primary superblock.
Code: Select all
dd if=/dev/md4 bs=1M count=1 of=primarySB-2.img
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: No Volumes No Shares - Superblock Issue?

Postby fvdw » Wed Dec 18, 2024 10:07 pm

If it is the same as the old one or contain some other changes the next steps will be writimg a new modified superblock to set AG size correct and then run xfs_repair with an option to use geometry as given in the primairy superblock
Code: Select all
xfs_repair -o force_geometry

To make a new primary superblock I need the current one (see previous post)

Furthermore we will write a few secondary superblock, just to be sure that as xfs_repair wants to verify the primairy superblock that it finds a secondary which is the same
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: No Volumes No Shares - Superblock Issue?

Postby NigelBrownless » Thu Dec 19, 2024 6:30 pm

Attached is the new Primary Superblock...
You do not have the required permissions to view the files attached to this post.
NigelBrownless
 
Posts: 46
Joined: Mon Nov 04, 2024 2:19 pm

Re: No Volumes No Shares - Superblock Issue?

Postby fvdw » Thu Dec 19, 2024 8:03 pm

Thre are some differences but some I don't trust to be correct and indeed AG size has been reset to the "wrong" value. Attached a new superblock with AG size and number updated as well as some bytes from SB-2 which I think are correct.
We will write this as primairy block and as backup block to next 2 AG's
Code: Select all
dd if=primairySB-new.img bs=1M count=1 of=/dev/md4
dd if=primairySB-new.img bs=1M count=1 seek=4096 of=/dev/md4
dd if=primairySB-new.img bs=1M count=1 seek=8192 of=/dev/md4


After that try xfs_repair as follow
Code: Select all
xfs_repair -o force_geometry /dev/md4
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: No Volumes No Shares - Superblock Issue?

Postby NigelBrownless » Sat Dec 21, 2024 10:01 am

3 Superblocks written back. Output as expected....
Code: Select all
dd if=primarySB-new.img bs=1M count=1 of=/dev/md4
1+0 records in
1+0 records out
1048576 bytes (1.0MB) copied, 0.702953 seconds, 1.4MB/s
root@fvdw-sta-kirkwood:/ # dd if=primarySB-new.img bs=1M count=1 seek=4096 of=/dev/md4
1+0 records in
1+0 records out
1048576 bytes (1.0MB) copied, 0.176913 seconds, 5.7MB/s
root@fvdw-sta-kirkwood:/ # dd if=primarySB-new.img bs=1M count=1 seek=8192 of=/dev/md4
1+0 records in
1+0 records out
1048576 bytes (1.0MB) copied, 0.095892 seconds, 10.4MB/s
NigelBrownless
 
Posts: 46
Joined: Mon Nov 04, 2024 2:19 pm

PreviousNext

Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 9 guests