[Ocfs2-users] Re: Mounting multiple clones

Sunil Mushran Sunil.Mushran at oracle.com
Wed Sep 12 14:26:01 PDT 2007


Are you looking for a formal solution or a temporary one?

OCFS2 uses the uuid (part of superblock) as a domain name.
So one cannot mount a cloned volume on any node of a cluster
that has already mounted the original volume.

tunefs.ocfs2 -U regenerates the uuid. However, tunefs will
ensure the volume is not in use by attempting to join a cluster
with that domain name.

Solution is to run tunefs.ocfs2 on a separate cluster (could be
a node having a one node cluster.conf) to regenerate the uuid.
After that, one will be able to mount that volume on the existing
cluster.

A better solution could be for cloners to automatically regenerate
the uuid, but that's a whole different ball game.

A temp solution could be to hand edit the uuid in the super block. :)

Adam Wagner wrote:
> I'm having this same problem. Is there any way to mount a clone of an 
> ocfs2 volume on a node that's part of the same cluster?
>
> I'm running ocfs2-2.6.9-42.0.10.ELlargesmp-1.2.5-2 with 
> ocfs2-tools-1.2.4-1.
>
>
> Sunil Mushran wrote:
>> Probably because you are attempting to run it on a node/cluster
>> that has the original volume mounted. (The uuid is used as the
>> dlm domain.)
>>
>> So rerun the same on a node that is not part of the cluster.
>>
>> Antonio Marongiu wrote:
>>> Hi Kim,
>>> I'm having the same problem, did you solve this problem using 
>>> tune.ocfs2 -U?
>>> I'm trying to reset uuid on a ocfs2 device using ocfs2 1.2.4.
>>>
>>> [root at node01 ~]tunefs.ocfs2 -U /dev/dm-4
>>> tunefs.ocfs2 1.2.4
>>>
>>> ocfs gave me this error
>>> tunefs.ocfs2: Trylock failed while locking down the cluster.
>>>
>>>
>>> /dev/dm-4 is not a mounted filesystem, do you have any  idea?
>>>
>>>
>>> Thank you...
>>>
>>>
>>>
>>> Antonio
>>>
>>>
>>> _______________________________________________
>>> Ocfs2-users mailing list
>>> Ocfs2-users at oss.oracle.com
>>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>>>   
>>
>>
>> _______________________________________________
>> Ocfs2-users mailing list
>> Ocfs2-users at oss.oracle.com
>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>>
>>




More information about the Ocfs2-users mailing list