LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-02-2013, 03:29 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
pacemaker - iscsi: failing to do a mount but works when cleaned up


Hi!

I'm having these experiments with iscsi and pacemaker. I have a san that holds 3 partitions. I have a ocf:heartbeat:iscsi resource for it and it works like a charm.... well, mostly.

I have noticed that if I try to migrate the group that holds everything together, it will move the resources successfully up to the san and then the following resource, which is a mount point for one of its resources) will fail. On the log I can see this:

Code:
Jan  2 16:41:22 cluster2 Filesystem[4755]: WARNING: Couldn't find device [/dev/disk/by-uuid/aac80604-cba5-4fb8-a7f5-a29187c51f52]. Expected /dev/??? to exist
Jan  2 16:41:22 cluster2 cib: [4754]: info: retrieveCib: Reading cluster configuration from: /var/lib/heartbeat/crm/cib.Q6XEcr (digest: /var/lib/heartbeat/crm/cib.QeHMGM)
Jan  2 16:41:22 cluster2 lrmd: [2735]: WARN: Managed datapostgres:monitor process 4755 exited with return code 7.

Now, if I try to do a cleanup from either of the nodes, it won't work.... the interesting part is _why_ it won't work. Instead of just trying to start the resource from that point (having the san active on the appointed node) it will bring everything down, then start everything up to the san, then the mount point and that fails. Then it tried to migrate to the other node and it fails with the same sequence and then it comes back to the node where it was before cleaning up activating up to the san (won't try to mount again).

The funny part is that if I stop the inactive node (by stopping corosync) and I do the clean up, it will work (unlike when both nodes were up, it won't bring the san resource down). Given that the failed attempts happen because the san has been activated right before the mount point I think that by the time the mount is going to be attempted, the resources from the san haven't been probed yet and so the devices that are on it are missing. Is there a way to make the san resource wait for the OS to probe it or something?

Thanks in advance.

Last edited by eantoranz; 01-02-2013 at 03:42 PM.
 
Old 01-02-2013, 03:50 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Got it. Added a ocf:heartbeat:Delay resource after starting the san.
 
  


Reply

Tags
iscsi, mount, pacemaker, probe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pacemaker - no checking for iscsi status? eantoranz Linux - Server 2 01-03-2013 07:33 AM
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 08:38 AM
Compiz works, cleaned out my /home folder, and screwed up system Vi3GameHkr LinuxQuestions.org Member Success Stories 0 01-08-2011 09:34 PM
udev rule failing to create iscsi symlinks! patrarch Linux - Newbie 1 11-29-2007 03:42 PM
udev rule failing to create iscsi symlinks patrarch Linux - Networking 1 11-29-2007 01:41 AM


All times are GMT -5. The time now is 01:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration