[Ocfs2-announce] Re: ocfs2 and configfs.ko..fixed...but gnuparted
has issues....fixed gnuparted...but mount -t ocfs2 fails...
Mandar P Vengurlekar
mandar.p.vengurlekar at gmail.com
Wed Jun 1 18:39:45 CDT 2005
Thank you for the response Bert.
I had created the partitions using fdisk and it had only errored saying the
device is in use. Partition table will be synced at next reboot.
I rebooted and fdisk -l showed me the partitions I had created.
after this .....
I installed gnu part 1.6.22 and the partprobe did not give any errors.
Now however...here is where I am stuck,...
====>
# mkfs.ocfs2 -b 4096 -C 4k -L /ocfs2/oradata/r10g/orcl -N 2 /dev/sdb1
mkfs.ocfs2 0.99.9-BETA10
Overwriting existing ocfs2 partition.
Proceed (y/N): y
Filesystem label=/ocfs2/oradata/r10g/orcl
Block size=4096 (bits=12)
Cluster size=4096 (bits=12)
Volume size=1011675136 (246991 clusters) (246991 blocks)
Journal size=16777216
8 cluster groups (tail covers 21199 clusters, rest cover 32256 clusters)
Initial number of node slots: 2
Creating bitmaps: done
Initializing superblock: done
Writing system files: done
Writing superblock: done
Writing lost+found: done
mkfs.ocfs2 successful
# mount -t ocfs2 /dev/sdb1 /ocfs2/oradata/r10g/orcl
mount.ocfs2: No such device while mounting /dev/sdb1 on
/ocfs2/oradata/r10g/orcl
====>
extract from /var/log/messages
==============
Jun 1 19:22:37 linux1 remote(pam_unix)[23600]: authentication failure;
logname= uid=0 euid=0 tty=pts/2 ruser= rhost=192.168.1.1 user=root
Jun 1 19:22:39 linux1 login[23600]: FAILED LOGIN 1 FROM 192.168.1.1 FOR
root, Authentication failure
Jun 1 19:22:41 linux1 remote(pam_unix)[23600]: session opened for user root
by (uid=0)
Jun 1 19:22:41 linux1 -- root[23600]: ROOT LOGIN ON pts/2 FROM 192.168.1.1
Jun 1 19:22:54 linux1 gconfd (root-3809): Resolved address
"xml:readwrite:/root/.gconf" to a writable configuration source at position
0
Jun 1 19:22:57 linux1 remote(pam_unix)[23600]: session closed for user root
Jun 1 19:25:01 linux1 crond(pam_unix)[23736]: session opened for user root
by (uid=0)
Jun 1 19:25:01 linux1 crond(pam_unix)[23736]: session closed for user root
Jun 1 19:26:47 linux1 kernel: program partprobe is using a deprecated SCSI
ioctl, please convert it to SG_IO
Jun 1 19:26:47 linux1 kernel: program partprobe is using a deprecated SCSI
ioctl, please convert it to SG_IO
Jun 1 19:26:47 linux1 kernel: cdrom: open failed.
Jun 1 19:26:47 linux1 kernel: cdrom: open failed.
Jun 1 19:28:10 linux1 kernel: program partprobe is using a deprecated SCSI
ioctl, please convert it to SG_IO
Jun 1 19:28:10 linux1 kernel: program partprobe is using a deprecated SCSI
ioctl, please convert it to SG_IO
Jun 1 19:28:10 linux1 kernel: cdrom: open failed.
Jun 1 19:28:10 linux1 kernel: cdrom: open failed.
Jun 1 19:29:44 linux1 kernel: (736,0):__dlm_print_nodes:390 Nodes in my
domain ("7A05325EC81C4D16876A5F7476F9D7A0"):
Jun 1 19:29:44 linux1 kernel: (736,0):__dlm_print_nodes:396 node 0
Jun 1 19:30:01 linux1 crond(pam_unix)[741]: session opened for user root by
(uid=0)
Jun 1 19:30:01 linux1 crond(pam_unix)[743]: session opened for user root by
(uid=0)
Jun 1 19:30:01 linux1 crond(pam_unix)[743]: session closed for user root
Jun 1 19:30:01 linux1 crond(pam_unix)[741]: session closed for user root
Jun 1 19:31:48 linux1 kernel: (751,0):__dlm_print_nodes:390 Nodes in my
domain ("7A05325EC81C4D16876A5F7476F9D7A0"):
Jun 1 19:31:48 linux1 kernel: (751,0):__dlm_print_nodes:396 node 0
Jun 1 19:35:01 linux1 crond(pam_unix)[772]: session opened for user root by
(uid=0)
Jun 1 19:35:02 linux1 crond(pam_unix)[772]: session closed for user root
=====
----- Original Message -----
From: "Bert Barbe" <bert.barbe at oracle.com>
To: "Mandar P Vengurlekar" <mandar.p.vengurlekar at gmail.com>
Sent: Wednesday, June 01, 2005 1:01 PM
Subject: Re: [Ocfs2-announce] Re: ocfs2 and configfs.ko..fixed...but
gnuparted has issues....
> On Wed, Jun 01, 2005 at 06:42:06AM -0400, Mandar P Vengurlekar wrote:
>> I was able to get the source code for ocfs2 and compile it. This worked
>> and created the necessary .ko files
>>
> Cool.
>
>> Now I have to figure out why gnu parted 1.6.15 has bugs. when I try a
>> partprobe on a partitioned firewire maxtor drive
>> mount -t ocfs2 /dev/sdb1 /u01/oradata/orcl
>
> Hmm, I don't have experience with parted/partprobe myself : I'm an
> oldfashioned fdisk user ;) Sometimes however fdisk tells me the kernel
> can't update the partition table (typically when the device
> is somehow still in use) and I have to reboot. Can you see
> your partitions after reboot ?
>
> Regards,
> Bert
>>
>> It says no such device....
>> Any ideas anyone?...
>>
>> Regards,
>> Mandar Vengurlekar
>> ----- Original Message -----
>> From: Mandar P Vengurlekar
>> To: ocfs2-announce at oss.oracle.com ; otnfeedback_us at oracle.com
>> Sent: Tuesday, May 31, 2005 9:09 PM
>> Subject: ocfs2 and configfs.ko
>>
>>
>> Hi
>> I am new to linux and clustering, but I am trying to setup ocfs2 and
>> rac10g on fedora 3 (Linux linux2 2.6.9-5.0.3.EL.orafw1smp #1 SMP Mon Mar
>> 7 22:29:31 PST 2005 i686 i686 i386 GNU/Linux)
>> have a dell 4700 and dell 3000 both with 1 GB RAM and a 250G maxtor
>> share drive...( build your own 10grac ..from technet.oracle.com)
>> =======================
>> # rpm -qa|grep -i ocfs2
>> ocfs2-2.6.9-5.0.5.EL-0.99.9-1
>> ocfs2-tools-0.99.8-1
>> ocfs2console-0.99.8-1
>> # rpm -qa|grep -i kernel
>> kernel-smp-devel-2.6.9-5.0.3.EL.orafw1
>> kernel-2.6.11-1.27_FC3
>> kernel-devel-2.6.9-5.0.3.EL.orafw1
>> kernel-utils-2.4-13.1.49_FC3
>> kernel-2.6.9-1.667
>> kernel-doc-2.6.11-1.27_FC3
>> kernel-smp-2.6.9-5.0.3.EL.orafw1
>>
>> I installed the ocfs2 tools,console. However two things:
>> =======================
>> 1.when i ran ocfs2console as per the doc, it did not allow me to
>> configure any cluster definition.
>> no /etc/ocfs2/cluster.conf file existed. no /etc/ocfs2 existed.
>>
>> so i created the /etdc/ocfs2/cluster.conf file manually
>> # cat /etc/ocfs2/cluster.conf
>> cluster:
>> node_count = 2
>> name = CLUSTER1
>>
>> node:
>> ip_port = 7777
>> ip_address = 192.168.2.10
>> number = 0
>> name = int-linux1
>> cluster = CLUSTER1
>>
>> node:
>> ip_port = 7777
>> ip_address = 192.168.2.20
>> number = 1
>> name = int-linux2
>> cluster = CLUSTER1
>>
>> 2. the load for o2cb failed.
>> ===========================
>> # /etc/init.d/o2cb configure
>> Configuring the O2CB driver.
>>
>> This will configure the on-boot properties of the O2CB driver.
>> The following questions will determine whether the driver is loaded on
>> boot. The current values will be shown in brackets ('[]'). Hitting
>> <ENTER> without typing an answer will keep that current value. Ctrl-C
>> will abort.
>>
>> Load O2CB driver on boot (y/n) [y]: y
>> Cluster to start on boot (Enter "none" to clear) [MANDARCLUSTER]:
>> Writing O2CB configuration: OK
>> Loading module "configfs": Unable to load module "configfs"
>> Failed
>> # /etc/init.d/o2cb load
>> Loading module "configfs": Unable to load module "configfs"
>> Failed
>> #
>> ========================
>> messages in the /var/log/messages:
>> May 31 20:01:01 linux2 crond(pam_unix)[4637]: session closed for user
>> root
>> May 31 20:02:03 linux2 modprobe: FATAL: Module configfs not found.
>> May 31 20:04:00 linux2 last message repeated 2 times
>> May 31 20:04:39 linux2 modprobe: FATAL: Module configfs not found.
>> May 31 20:05:01 linux2 crond(pam_unix)[5016]: session opened for user
>> root by (uid=0)
>> May 31 20:05:02 linux2 crond(pam_unix)[5016]: session closed for user
>> root
>> May 31 20:07:10 linux2 init: Trying to re-exec init
>> May 31 20:10:01 linux2 crond(pam_unix)[9805]: session opened for user
>> root by (uid=0)
>> May 31 20:10:01 linux2 crond(pam_unix)[9804]: session opened for user
>> root by (uid=0)
>> May 31 20:10:01 linux2 crond(pam_unix)[9804]: session closed for user
>> root
>> May 31 20:10:02 linux2 crond(pam_unix)[9805]: session closed for user
>> root
>> May 31 20:10:10 linux2 modprobe: FATAL: Module configfs not found.
>> May 31 20:10:21 linux2 modprobe: FATAL: Module configfs not found.
>> ===================
>> location of configfs.ko
>> # cd /
>> # find . -name configfs* -print
>> ./lib/modules/2.6.9-5.0.5.EL/kernel/fs/configfs
>> ./lib/modules/2.6.9-5.0.5.EL/kernel/fs/configfs/configfs.ko
>> find: ./proc/9051/task: No such file or directory
>> ==================>---so i copied the configfs and ocfs2 directory to
>> /lib/modules/2.6.9-5.0.3.EL.orafw1smp/kernel/fs
>> #cd /
>> # ls -alR configfs
>> configfs:
>> total 412
>> drwxr-xr-x 2 root root 4096 May 27 15:06 .
>> drwxr-xr-x 23 root root 4096 May 31 20:44 ..
>> -rw-r--r-- 1 root root 406287 May 19 21:32 configfs.ko
>> # pwd
>> /lib/modules/2.6.9-5.0.3.EL.orafw1smp/kernel/fs
>> # ls -alR ocfs2
>> ocfs2:
>> total 5692
>> drwxr-xr-x 2 root root 4096 May 27 15:06 .
>> drwxr-xr-x 23 root root 4096 May 31 20:44 ..
>> -rw-r--r-- 1 root root 318365 May 19 21:32 ocfs2_dlmfs.ko
>> -rw-r--r-- 1 root root 1429939 May 19 21:32 ocfs2_dlm.ko
>> -rw-r--r-- 1 root root 3424866 May 19 21:32 ocfs2.ko
>> -rw-r--r-- 1 root root 620469 May 19 21:32 ocfs2_nodemanager.ko
>> ====================
>> # vi modules.dep
>> # vi modules.alias
>> # vi modules.dep
>> # modprobe configfs
>> FATAL: Error inserting configfs
>> (/lib/modules/2.6.9-5.0.3.EL.orafw1smp/kernel/fs/configfs/configfs.ko):
>> Invalid module format
>> ======================
>> Is there a separate version of configfs.ko for
>> 2.6.9-5.0.3.EL.orafw1smp?
>>
>> Regards,
>> Mandar Vengurlekar
>> _______________________________________________
>> Ocfs2-announce mailing list
>> Ocfs2-announce at oss.oracle.com
>> http://oss.oracle.com/mailman/listinfo/ocfs2-announce
>
More information about the Ocfs2-announce
mailing list