Beruflich Dokumente
Kultur Dokumente
Downloading OCFS.
Configuring OCFS.
Loading ocfs.
Using /lib/modules/2.4.9-e-enterprise-ABI/ocfs/ocfs.o
-h Help
-L Volume label
-n Query only
-q Quiet execution
Tools
ocfstool
Illustration 2
Illustration 3
Illustration 4
Illustration 5
In addition to the two portions showed, there are the
tasks that can be reached by the menu. The available
tasks on the menu are:
1.1.8 - Format.
There are two ways to invoke the format window, one is press-
ing the <CTRL+F> key sequence and the other is invoking by
selecting the menu Tasks>Format.
When the format window is invoked, the following options will
be available:
Device – From the pull-down menu, select the device that is
going to be OCFS formatted. Make sure the device is not in
use by any other application or filesystem before proceeding.
Blocksize – Select the blocksize on which the partition is go-
ing to be formatted. Valid values are 4k, 8k, 16k 32k, 64k,
128k, 256k, 512k and 1024k. The optimal size suggested by
Oracle is 128k. Smaller blocksize can be selected but they will
carry some performance penalty. This is also going to limit the
size of the partition that can be used when formatting with
OCFS (32Gb to 8Tb).
Volume Label – This will specify the volume label. This is
useful if the user wants to use the volume label to mount the
filesystem.
Mountpoint – Specify the location where the partition is go-
ing to be mounted. The mount point must exist on all nodes in
the cluster that will share the device.
User – Specify the user that will own the filesystem. When the
filesystem is mounted, it is automatically owned by the user
specified in this field.
Group – Specify the group that the filesystem will belong to.
Similar to the User field.
Protection – Sets the default permission of the filesystem
when mounted. Usually set to 0755.
Clear all Data Blocks – When checked, this option will make
ocfs format block by block, zeroing all the filesystem. This op-
tion will increase the time necessary to format the partition
considerably. (SLOW)
Force – This options needs to be checked if the partition
to be formatted was previously formatted by OCFS.
Illustration 6
Illustration 7
Extfinder
Debugocfs
[-d /dir/name] [-f /file/name [-s /path/to/file]] [-a range] [-A range]
[-b range] [-B range] [-r range] [-c range] [-L range] [-M range]
ex. 0-3,5,14-17
volumelabel:
curr_master = 0
file_lock = OCFS_DLM_NO_LOCK
oin_node_map = 00000000000000000000000000000000
seq_num = 0
label = /u01
label_len = 4
[root@ca-test2 root]#
Vote Sector.
[root@ca-test2 root]# debugocfs -v 0-2 /dev/sdb12
vote0:
seq_num = 0
dir_ent = 0
open_handle = No
Vote0 = (0x00000000)
Vote1 = (0x00000000)
Vote2 = (0x00000000)
vote1:
seq_num = 0
dir_ent = 0
open_handle = No
Vote0 = (0x00000000)
Vote1 = (0x00000000)
Vote2 = (0x00000000)
vote2:
seq_num = 0
dir_ent = 0
open_handle = No
Vote0 = (0x00000000)
Vote1 = (0x00000000)
Vote2 = (0x00000000)
[root@ca-test2 root]#
[root@ca-test2 root]#
Support Utilities
/etc/init.d/ocfs
-N No write
-V Version
-v Verbose
-q Quiet
/sbin/load_ocfs
/sbin/mkfs.ocfs
-h Help
-L Volume label
-n Query only
-q Quiet execution
/sbin/ocfs_uid_gen
ocfs_uid_gen -r
cluster.
has changed.
Best Practices
Appendix A
August 2003
Author: Marcos E. Matsunaga
Contributing Authors: Wim Coekaerts, Kurt Hackel, Sunil Mushran,
Manish Singh and Mark Fasheh.
Oracle Corporation
World Headquarters
500 Oracle Parkway
Redwood Shores, CA 94065
U.S.A.
Worldwide Inquiries:
Phone: +1.650.506.7000
Fax: +1.650.506.7200
www.oracle.com