<div dir="ltr"><span style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">Hi LQ friends,</span><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">I have a problem with our OCFS2 cluster, which I couldn't solve by myself. </span><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">In short, I have a OCFS2 cluster with 3 nodes and a shared storage LUN. I have mapped the LUN to all 3 of the nodes, and split the LUN into 2 partitions, formatted them as OCFS2 filesystems and mounted them successfully. The system has been running OK for nearly 2 years, but today the partition 1 suddenly is not accessible. I have to reboot 1 node. After rebooting, the partition 2 is mounted OK, but the partition 1 cannot be mounted.</span><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">The error is below:</span></span><div><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size:13.3333px"><br></span></font></div><div><pre class="" dir="ltr" style="color:rgb(0,0,0);font-size:13.3333px;margin-top:0px;margin-bottom:0px;padding:3px;border:1px inset;width:1127px;height:434px;overflow:auto;background-color:rgb(230,230,230)"># mount -t ocfs2 /dev/mapper/mpath3p1 /test
mount.ocfs2: Bad magic number in inode while trying to determine heartbeat information
# fsck.ocfs2 /dev/mapper/mpath3p1
fsck.ocfs2 1.6.3
fsck.ocfs2: Bad magic number in inode while initializing the DLM
# fsck.ocfs2 -r 2 /dev/mapper/mpath3p1
fsck.ocfs2 1.6.3
[RECOVER_BACKUP_SUPERBLOCK] Recover superblock information from backup block#1048576? <n> y
fsck.ocfs2: Bad magic number in inode while initializing the DLM
# parted /dev/mapper/mpath3
GNU Parted 1.8.1
Using /dev/mapper/mpath3
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Linux device-mapper (dm)
Disk /dev/mapper/mpath3: 20.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 10.2TB 10.2TB primary
2 10.2TB 20.0TB 9749GB primary</pre></div><div><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><span style="font-size:13.3333px"><br></span></font><div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><br></span></span></div><div><span style="background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">Usually, the bad magic number happens when the super block is corrupted, and I have experienced several similar cases before, which can be solved quickly by using backup super blocks. But this case is different, I cannot fix the problem by simply replacing the super block, thus I'm out of ideas.</span><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">Please take a look and suggest me how to solve this problem, as I need to recover the data, it's the most important goal now.</span><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px">Thanks in advance.</span><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13.3333px"><br></span></span></div></div></div>