[Linux-HA] Filesystem resource agent will not mount device, "ERROR: unpack_rsc_op: Hard error"
Martin Oswald
martin.oswald at muenchen.de
Wed Oct 27 01:01:52 MDT 2010
>
> You you have a v1 configuration or a config according to version 2 (CRM)?
>
> You can find the OCF resource agent in
> /usr/lib/ocf/resource.d/heartbeat/Filesystem. If you want to check it
> manually please use the ocf_tester script.
>
> Somthing like:
> ocf_tester -n myFilesys -o device="/dev/..." fstype="..." \
> -o directory="/data/ ..."
>
> What is the output of that command? Can you install the FS manually? What type
> if the filesystem?
>
> Greetings,
>
Thanks for the fast reply! I use v2 configuration. Also I use the OCF
resource agent, I got that wrong in the first post.
So I tried to mount the device via the OCF Filesystem agent and it
worked fine:
-- snip --
# export OCF_ROOT=/usr/lib/ocf/
# export OCF_RESKEY_device=/dev/vx/dsk/dg_ora37/data2_ora37
# export OCF_RESKEY_directory=/data2/ora37
# export OCF_RESKEY_fstype=vxfs
# /usr/lib/ocf/resource.d/heartbeat/Filesystem start
2010/10/27_08:39:35 INFO: Running start for
/dev/vx/dsk/dg_ora37/data2_ora37 on /data2/ora37
2010/10/27_08:39:35 INFO: Starting filesystem check on
/dev/vx/dsk/dg_ora37/data2_ora37
fsck 1.38 (30-Jun-2005)
file system is clean - log replay is not required
# /usr/lib/ocf/resource.d/heartbeat/Filesystem status
2010/10/27_08:39:47 INFO: Running status for
/dev/vx/dsk/dg_ora37/data2_ora37 on /data2/ora37
2010/10/27_08:39:47 INFO: /data2/ora37 is mounted (running)
-- snip --
I also tried the ocf_tester:
-- snip --
# ocf-tester -n mount_ora37_data2 -o
device=/dev/vx/dsk/dg_ora37/data2_ora37 -o directory=/data2/ora37 -o
fstype=vxfs /usr/lib/ocf/resource.d/heartbeat/Filesystem
Beginning tests for /usr/lib/ocf/resource.d/heartbeat/Filesystem...
* Your agent does not support the notify action (optional)
* Your agent does not support the demote action (optional)
* Your agent does not support the promote action (optional)
* Your agent does not support master/slave (optional)
* Your agent does not support the reload action (optional)
/usr/lib/ocf/resource.d/heartbeat/Filesystem passed all tests
-- snip --
The filesystem is a Veritas Filesystem (vxfs).
More information about the Linux-HA
mailing list