[Users] How to configure sharedFS ?
Deepak C Shetty
deepakcs at linux.vnet.ibm.com
Mon Mar 5 16:45:09 UTC 2012
On 02/29/2012 08:06 PM, Dan Kenigsberg wrote:
> On Wed, Feb 29, 2012 at 07:42:15PM +0530, Deepak C Shetty wrote:
>> On 02/27/2012 04:55 AM, Ayal Baron wrote:
>>> Any help on documenting this so people would not have to dig into the code would be greatly appreciated.
>>>
>>>> Great, let me start and get back if i land up into issues.
>>>> thanks for the pointer.
>>> Let us know if you need further assistance..
>> This is how I plan to attack it... using vdscli, let me know if my
>> steps are correct ?
>>
>> 1) Use createStorageDomain to create a SHAREDFS_DOMAIN of domTypes
>> data& iso
>> 2) Use createStoragePool and associate the above sd's with this pool.
>> 3) How to copy .iso into the newly create iso dom ?
>> engine-iso-uploader won't know abt it, rite ?
> I would've used `cp` (chown to make sure vdsm can read it when needed).
>
>> 4) create a volume to represent my vm disk
>> 5) Use create to create a VM and run it
>>
>> Is this the recommended way ( to use individual vdscli cmds) or the
>> way its done in
>> http://www.ovirt.org/wiki/Vdsm_Standalone ?
>>
> For human-triggered setup, running vdsClient from bash may be easier.
> But the suggested python script is expected to take you slightly further
> on the road to reproducible testable application on top of Vdsm.
>
> If you have that python script working for LOCALFS, I'd suggest you try
> making it work for SHAREDFS too.
Hi All
Getting this error, while doing createStorageDomain for SHAREDFS
From vdsm.log
-------------------
Thread-29::DEBUG::2012-03-06
03:35:27,127::safelease::53::Storage.Misc.excCmd::(initLock) FAILED:
<err> = "panic: [11002] can't open '%s':
/rhev/data-center/mnt/llm65.in.ibm.com:dpkvol/ff214060-642d-43b7-ac51-23278371ee1f/dom_md/leases:
(Invalid argument)\n"; <rc> = 255
Thread-29::WARNING::2012-03-06
03:35:27,127::safelease::55::ClusterLock::(initLock) could not
initialise spm lease (255): []
Thread-29::WARNING::2012-03-06
03:35:27,127::sd::328::Storage.StorageDomain::(initSPMlease) lease did
not initialize successfully
Traceback (most recent call last):
File "/usr/share/vdsm/storage/sd.py", line 324, in initSPMlease
safelease.ClusterLock.initLock(self._getLeasesFilePath())
File "/usr/share/vdsm/storage/safelease.py", line 56, in initLock
raise se.ClusterLockInitError()
ClusterLockInitError: Could not initialize cluster lock: ()
Thread-29::INFO::2012-03-06
03:35:27,128::logUtils::39::dispatcher::(wrapper) Run and protect:
createStorageDomain, Return response: None
Getting the below error when trying to createStoragePool...
From vdsm.log
-------------------
Thread-35::DEBUG::2012-03-06
03:35:27,323::safelease::72::ClusterLock::(acquire) Acquiring cluster
lock for domain ff214060-642d-43b7-ac51-23278371ee1f
Thread-35::DEBUG::2012-03-06
03:35:27,323::safelease::81::Storage.Misc.excCmd::(acquire)
'/usr/bin/sudo -n /usr/bin/setsid /usr/bin/ionice -c1 -n0 /bin/su vdsm
-s /bin/sh -c "/usr/libexec/vdsm/spmprotect.sh start
ff214060-642d-43b7-ac51-23278371ee1f 1000 5
/rhev/data-center/mnt/llm65.in.ibm.com:dpkvol/ff214060-642d-43b7-ac51-23278371ee1f/dom_md/leases
30000 1000 3"' (cwd /usr/libexec/vdsm)
Thread-35::DEBUG::2012-03-06
03:35:27,374::safelease::81::Storage.Misc.excCmd::(acquire) FAILED:
<err> = "panic: [11019] can't open '%s':
/rhev/data-center/mnt/llm65.in.ibm.com:dpkvol/ff214060-642d-43b7-ac51-23278371ee1f/dom_md/leases:
(Invalid argument)\n"; <rc> = 1
Thread-35::ERROR::2012-03-06
03:35:27,374::task::855::TaskManager.Task::(_setError)
Task=`4d02e106-5d7c-4373-a834-5d5f4ea297be`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 863, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/logUtils.py", line 38, in wrapper
res = f(*args, **kwargs)
File "/usr/share/vdsm/storage/hsm.py", line 694, in createStoragePool
return sp.StoragePool(spUUID, self.taskMng).create(poolName,
masterDom, domList, masterVersion, safeLease)
File "/usr/share/vdsm/storage/sp.py", line 546, in create
msd.acquireClusterLock(self.id)
File "/usr/share/vdsm/storage/sd.py", line 379, in acquireClusterLock
self._clusterLock.acquire(hostID)
File "/usr/share/vdsm/storage/safelease.py", line 83, in acquire
raise se.AcquireLockFailure(self._sdUUID, rc, out, err)
AcquireLockFailure: Could not obtain lock:
'id=ff214060-642d-43b7-ac51-23278371ee1f, rc=1, out=[], err=["panic:
[11019] can\'t open \'%s\':
/rhev/data-center/mnt/llm65.in.ibm.com:dpkvol/ff214060-642d-43b7-ac51-23278371ee1f/dom_md/leases:
(Invalid argument)"]'
Thread-35::DEBUG::2012-03-06
03:35:27,376::task::874::TaskManager.Task::(_run)
Task=`4d02e106-5d7c-4373-a834-5d5f4ea297be`::Task._run:
4d02e106-5d7c-4373-a834-5d5f4ea297be (6,
'82350e39-5940-48c0-81b3-c9955ada0f08', 'my gluster pool',
'ff214060-642d-43b7-ac51-23278371ee1f',
['ff214060-642d-43b7-ac51-23278371ee1f'], 1) {} failed - stopping task
for it.
Thread-35::DEBUG::2012-03-06
03:35:27,381::resourceManager::562::ResourceManager::(releaseResource)
No one is waiting for resource
'Storage.82350e39-5940-48c0-81b3-c9955ada0f08', Clearing records.
Thread-35::ERROR::2012-03-06
03:35:27,381::dispatcher::90::Storage.Dispatcher.Protect::(run)
{'status': {'message': 'Could not obtain lock:
\'id=ff214060-642d-43b7-ac51-23278371ee1f, rc=1, out=[], err=["panic:
[11019] can\\\'t open \\\'%s\\\':
/rhev/data-center/mnt/llm65.in.ibm.com:dpkvol/ff214060-642d-43b7-ac51-23278371ee1f/dom_md/leases:
(Invalid argument)"]\'', 'code': 651}}
>
More information about the Users
mailing list