[DRBD-user] Couldn't find filesystem ext3 when running HA

Lars Ellenberg lars.ellenberg at linbit.com
Tue Mar 24 09:26:11 CET 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Tue, Mar 24, 2009 at 11:24:57AM +0800, Cindy KS TOH wrote:
> Dear Sir/Madam,
> 
> Can anyone help me to diagnose what is the problem of my script? Cause i 
> cannot get my HA to work as accordingly.
> I have tested using one drbd partition and tested ok with HA.
> Now i am using 2 drbd partitions. If manually run the drbd and mounting 
> it, all works fine, but when i want it to be automatically up by HA, it 
> is not working as i wanted. It just don't want to mount my drbd1 and 
> then all things failed.
> 
> I have included my drbd.conf, ha.cf, haresources and ha-debug log in 
> this email.  Cause i am not sure how to describe it.
> Help?

is this one of the "do never edit unix files on windows" issues?

> ResourceManager[8187]:    2009/03/24_09:20:36 info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd0 /data ext3 start
> Filesystem[8513]:    2009/03/24_09:20:36 INFO: Running start for /dev/drbd0 on /data
> Filesystem[8502]:    2009/03/24_09:20:36 INFO:  Success

so ext3 is a know file system, support of it is definetely available.

> ResourceManager[8187]:    2009/03/24_09:20:36 info: Running /etc/ha.d/resource.d/Filesystem /dev/drbd1 /data2 ext3 start
> Filesystem[8662]:    2009/03/24_09:20:37 INFO: Running start for /dev/drbd1 on /data2
> Filesystem[8662]:    2009/03/24_09:20:37 ERROR: Couldn't find filesystem ext3 in /proc/filesystems
> Filesystem[8651]:    2009/03/24_09:20:37 ERROR:  Illegal argument

and now it thinks that ext3 is not supported.

> [root at f10-1 ~]# cat /etc/ha.d/haresources
> f10-1 172.16.3.100 drbddisk::r0 drbddisk::r1 Filesystem::/dev/drbd0::/data::ext3 Filesystem::/dev/drbd1::/data2::ext3

possibly that haresources ends with ".../data2::ext3\r\n",
and now the scripts look for a filesystem type of "ext3\r"

'\r' is not usually considered "whitespace" by sh,
at least it is not in the default set of $IFS.
doh.

run dos2unix on that haresources file.
[ and stop editing your configuration files in ms office ;) ]

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to list   --   I'm subscribed



More information about the drbd-user mailing list