Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

mount.ocfs2: Bad magic number in superblock while opening device /dev/sdf1

user8665771Apr 12 2012 — edited Apr 18 2012
Hi,

I am trying to configure 11g on Rhel 6 (OEL6) in vwmare. While I am mounting the ocfs partition in rac2(node2), I show the below error.
"mount.ocfs2: Bad magic number in superblock while opening device /dev/sdf1".
But i can mount in rac1(node1).
I will give some information here based on other some of other forums.
NODE1(rac1)
=========
[root@rac1 ~]# mounted.ocfs2 -d
Device FS Stack UUID Label
/dev/sdf1 ocfs2 o2cb 2D1785E0BC2D4EE6911FEE26896AFAD1 crsfile
[root@rac1 ~]# mounted.ocfs2 -f
Device FS Nodes
/dev/sdf1 ocfs2 rac1
[root@rac1 ~]# /etc/rc.d/init.d/ocfs2 status
Active OCFS2 mountpoints: /ocfs

NODE2(rac2)
=========
[root@rac2 ~]# mounted.ocfs2 -d
Device FS Stack UUID Label
[root@rac2 ~]# mounted.ocfs2 -f
Device FS Nodes
[root@rac2 ~]# /etc/rc.d/init.d/ocfs2 status
[root@rac2 ~]#

NODE1(rac1)
=========
[root@rac1 ~]# cat /etc/ocfs2/cluster.conf
node:
ip_port = 7777
ip_address = 192.168.2.131
number = 0
name = rac1
cluster = ocfs2

node:
ip_port = 7777
ip_address = 192.168.2.132
number = 1
name = rac2
cluster = ocfs2

cluster:
node_count = 2
name = ocfs2
[root@rac1 ~]#


NODE2(rac2)
=========
[root@rac2 ~]# cat /etc/ocfs2/cluster.conf
node:
ip_port = 7777
ip_address = 192.168.2.131
number = 0
name = rac1
cluster = ocfs2

node:
ip_port = 7777
ip_address = 192.168.2.132
number = 1
name = rac2
cluster = ocfs2

cluster:
node_count = 2
name = ocfs2

NODE1(rac1)
=========
[root@rac1 ~]# /etc/rc.d/init.d/iptables status
iptables: Firewall is not running.
[root@rac1 ~]#

NODE2(rac2)
=========
[root@rac2 ~]# /etc/rc.d/init.d/iptables status
iptables: Firewall is not running.
================NODE1(rac1)===============================
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "7"
maxvcpus = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "1024"
mem.hotadd = "TRUE"
############scsi0:0.present = "TRUE"
################scsi0:0.fileName = "RAC1.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "D:\oel6.0-x86_64.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.startConnected = "FALSE"
floppy0.fileName = ""
floppy0.autodetect = "TRUE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
usb.present = "TRUE"
ehci.present = "TRUE"
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
roamingVM.exitBehavior = "go"
displayName = "RAC1"
guestOS = "rhel5-64"
nvram = "RAC1.nvram"
virtualHW.productCompatibility = "hosted"
extendedConfigFile = "RAC1.vmxf"
ethernet0.generatedAddress = "00:0c:29:3e:d6:99"
uuid.location = "56 4d f1 85 0a 39 eb 0f-16 5b 09 0e 68 3e d6 99"
uuid.bios = "56 4d f1 85 0a 39 eb 0f-16 5b 09 0e 68 3e d6 99"
cleanShutdown = "FALSE"
replay.supported = "FALSE"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
vmci0.pciSlotNumber = "36"
vmotion.checkpointFBSize = "16777216"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "1748948635"
usb:1.present = "TRUE"
tools.remindInstall = "FALSE"
usb:1.deviceType = "hub"
ide1:0.startConnected = "FALSE"
tools.syncTime = "TRUE"
ethernet1.present = "TRUE"
ethernet1.connectionType = "bridged"
ethernet1.virtualDev = "e1000"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.addressType = "generated"
checkpoint.vmState = ""
ethernet0.linkStatePropagation.enable = "TRUE"
ethernet1.generatedAddress = "00:0c:29:3e:d6:a3"
unity.wasCapable = "TRUE"
debugStub.linuxOffsets = "0x0,0xffffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0"
ethernet1.pciSlotNumber = "37"
ethernet2.virtualDev = "e1000"
ethernet2.pciSlotNumber = "38"
ethernet1.generatedAddressOffset = "10"
ethernet0.vnet = "VMnet1"
ethernet0.connectionType = "bridged"
ethernet2.present = "TRUE"
ethernet2.vnet = "VMnet8"
ethernet2.connectionType = "nat"
ethernet2.wakeOnPcktRcv = "FALSE"
ethernet2.addressType = "generated"
ethernet2.generatedAddress = "00:0c:29:3e:d6:ad"
ethernet2.generatedAddressOffset = "20"
###############################################################################################################
# ----------------------------------------------------------------
# SHARED DISK SECTION - (BEGIN)
# ----------------------------------------------------------------
# - The goal in meeting the hardware requirements is to have a
# shared storage for the two nodes. The way to achieve this in
# VMware is the creation of a NEW SCSI BUS. It has to be of
# type "virtual" and we must have the disk.locking = "false"
# option.
# - Just dataCacheMaxSize = "0" should be sufficient with the
# diskLib.* parameters, although I include all parameters for
# documentation purposes.
# - maxUnsyncedWrites should matter for sparse disks only, and
# I certainly do not recommend using sparse disks for
# clustering.
# - dataCacheMaxSize=0 should disable cache size completely, so
# other three dataCache options should do nothing (no harm,
# but nothing good either).
# ----------------------------------------------------------------
#

diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"

disk.locking = "false"

# ----------------------------------------------------------------
# Create one HBA
# ----------------------------------------------------------------



# ----------------------------------------------------------------
# Create virtual SCSI disks on single HBA
# ----------------------------------------------------------------
#
# ----------------------------------------------------------------
# SHARED DISK SECTION - (END)
# ----------------------------------------------------------------
#
scsi0.sharedBus = "virtual"
scsi1.pciSlotNumber = "-1"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "RAC1.vmdk"
scsi0:1.present = "TRUE"
scsi0:1.fileName = "D:\shared_direc\Disk1.vmdk"
scsi0:2.present = "TRUE"
scsi0:2.fileName = "D:\shared_direc\Disk2.vmdk"
scsi0:3.present = "TRUE"
scsi0:3.fileName = "D:\shared_direc\Disk3.vmdk"
scsi0:4.present = "TRUE"
scsi0:4.fileName = "D:\shared_direc\Disk4.vmdk"
scsi0:5.present = "TRUE"
scsi0:5.fileName = "D:\shared_direc\Disk5.vmdk"
scsi0:1.redo = ""
scsi0:2.redo = ""
scsi0:3.redo = ""
scsi0:4.redo = ""
scsi0:5.redo = ""
scsi0:1.mode = "independent-persistent"
scsi0:1.deviceType = "disk"
scsi0:2.mode = "independent-persistent"
scsi0:2.deviceType = "disk"
scsi0:3.mode = "independent-persistent"
scsi0:3.deviceType = "disk"
scsi0:4.mode = "independent-persistent"
scsi0:4.deviceType = "disk"
scsi0:5.mode = "independent-persistent"
scsi0:5.deviceType = "disk"
scsi0:0.mode = "independent-persistent"
========================NODE2(rac2)=======================================
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "7"
maxvcpus = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "1024"
mem.hotadd = "TRUE"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "RAC1-cl1.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "D:\oel6.0-x86_64.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.startConnected = "FALSE"
floppy0.fileName = ""
floppy0.autodetect = "TRUE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
usb.present = "TRUE"
ehci.present = "TRUE"
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
roamingVM.exitBehavior = "go"
displayName = "rac2"
guestOS = "rhel5-64"
nvram = "rac2.nvram"
virtualHW.productCompatibility = "hosted"
extendedConfigFile = "rac2.vmxf"
ethernet0.generatedAddress = "00:0c:29:cd:a3:fc"
uuid.location = "56 4d 4c fe 6c c4 fd 8a-32 88 ac 95 5a cd a3 fc"
uuid.bios = "56 4d 4c fe 6c c4 fd 8a-32 88 ac 95 5a cd a3 fc"
cleanShutdown = "FALSE"
replay.supported = "FALSE"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
vmci0.pciSlotNumber = "36"
vmotion.checkpointFBSize = "16777216"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "1748948634"
usb:1.present = "TRUE"
tools.remindInstall = "FALSE"
usb:1.deviceType = "hub"
ide1:0.startConnected = "FALSE"
tools.syncTime = "TRUE"
ethernet1.present = "TRUE"
ethernet1.connectionType = "bridged"
ethernet1.virtualDev = "e1000"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.addressType = "generated"
checkpoint.vmState = ""
ethernet0.linkStatePropagation.enable = "FALSE"
ethernet1.generatedAddress = "00:0c:29:cd:a3:06"
unity.wasCapable = "TRUE"
debugStub.linuxOffsets = "0x0,0xffffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0"
ethernet1.pciSlotNumber = "37"
ethernet1.generatedAddressOffset = "10"
ethernet0.vnet = "VMnet1"
ethernet0.connectionType = "bridged"
scsi0:1.present = "TRUE"
scsi0:2.present = "TRUE"
policy.vm.mvmtid = ""
vc.uuid = ""
inVMTeam = "FALSE"
# ----------------------------------------------------------------
# Create one HBA
# ----------------------------------------------------------------
scsi0:1.fileName = "D:\shared_direc\Disk1.vmdk"
scsi0:1.mode = "independent-persistent"
scsi0:2.fileName = "D:\shared_direc\Disk2.vmdk"
scsi0:2.mode = "independent-persistent"
scsi0:3.present = "TRUE"
scsi0:3.fileName = "D:\shared_direc\Disk3.vmdk"
scsi0:3.mode = "independent-persistent"
scsi0:4.present = "TRUE"
scsi0:4.fileName = "D:\shared_direc\Disk4.vmdk"
scsi0:4.mode = "independent-persistent"
scsi0:5.present = "TRUE"
scsi0:5.fileName = "D:\shared_direc\Disk5.vmdk"
scsi0:5.mode = "independent-persistent"
scsi0:1.redo = ""
scsi0:2.redo = ""
scsi0:3.redo = ""
scsi0:4.redo = ""
scsi0:5.redo = ""
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
disk.locking = "false"
scsi0:1.deviceType = "disk"
scsi0:2.deviceType = "disk"
scsi0:3.deviceType = "disk"
scsi0:4.deviceType = "disk"
scsi0:5.deviceType = "disk"
scsi0:0.mode = "independent-persistent"
ethernet2.present = "FALSE"
scsi0.sharedBus = "virtual"
==========================================================================

NODE1(rac1)
=========
[root@rac1 ~]# /etc/init.d/o2cb status
Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Stack glue driver: Loaded
Stack plugin "o2cb": Loaded
Driver for "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Online
Heartbeat dead threshold = 31
Network idle timeout: 30000
Network keepalive delay: 2000
Network reconnect delay: 2000
Checking O2CB heartbeat: Active

NODE2(rac2)
=========
[root@rac2 ~]# /etc/init.d/o2cb status
Driver for "configfs": Loaded
Filesystem "configfs": Mounted
Stack glue driver: Loaded
Stack plugin "o2cb": Loaded
Driver for "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Offline
[root@rac2 ~]#

I have tried the below otption also. But no improvement. Same error.
1)unmont ocfs from both (I know it may not be mounted on both)
2)[root@RAC1 ~]# umount /ocfs
3)[root@RAC2 ~]# umount /ocfs
4)reformat the ocfs2 partition, either using UI or this command: mkfs.ocfs2 -b 4K -C 32K -N 4 -L crsfile /dev/sdb1 [ from rac1 only ]
5)mount it on both servers and see if it helps [mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs]

Please help me . If you want some more details. please ask.

thanks in adavance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2012
Added on Apr 12 2012
3 comments
1,291 views