Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i have the above config in my cinder.conf but still same issue observed I am configuring cinder once again will try again

After hours of struggle i have relized that 
the above config in my cinder.conf but still same issue observed path "/var/lock/cinder" where cinder was a file not a directory  I am configuring (worngly created as file)
so deleted file and created cinder once again will try again 

dir mkdir /var/lock/cinder chmod 777 /var/lock/cinder/ chown -R cinder:cinder /var/lock/cinder/ [root@controller ~]# ls -lrt /var/lock/ total 0 drwxrwxr-x 2 root lock 40 Jun 27 13:41 lockdev drwx------ 2 root root 60 Jun 22 15:15 iscsi drwxr-xr-x 2 root root 100 Jun 24 16:06 subsys drwxrwxrwx 2 cinder cinder 40 Jul 1 10:15 cinder drwx------ 2 root root 40 Jun 27 17:41 lvm After that able to do successfull volume attach [root@controller ~]# ls /var/lock/cinder/* -lrt -rw-r--r-- 1 cinder cinder 0 Jul 1 10:26 /var/lock/cinder/cinder-a8b88ce2-0084-4119-bca9-23f2d7361ae3 -rw-r--r-- 1 cinder cinder 0 Jul 1 10:24 /var/lock/cinder/cinder-4433d217-f046-444a-9f5c-65ab92a9aa83
After hours of struggle i relized realized that 
the path "/var/lock/cinder" where cinder was a file not a directory 
(worngly created as file)
so deleted file and created cinder dir 

mkdir /var/lock/cinder
chmod 777 /var/lock/cinder/
chown -R cinder:cinder /var/lock/cinder/

[root@controller ~]# ls -lrt /var/lock/
total 0
drwxrwxr-x 2 root   lock    40 Jun 27 13:41 lockdev
drwx------ 2 root   root    60 Jun 22 15:15 iscsi
drwxr-xr-x 2 root   root   100 Jun 24 16:06 subsys
drwxrwxrwx 2 cinder cinder  40 Jul  1 10:15 cinder
drwx------ 2 root   root    40 Jun 27 17:41 lvm

After that able to do successfull volume attach 
[root@controller ~]# ls /var/lock/cinder/* -lrt
-rw-r--r-- 1 cinder cinder 0 Jul  1 10:26 /var/lock/cinder/cinder-a8b88ce2-0084-4119-bca9-23f2d7361ae3
-rw-r--r-- 1 cinder cinder 0 Jul  1 10:24 /var/lock/cinder/cinder-4433d217-f046-444a-9f5c-65ab92a9aa83
After hours of struggle i realized that 
the path "/var/lock/cinder" where cinder was a file not a directory 
(worngly created as file)
so deleted file and created cinder dir 

mkdir /var/lock/cinder
chmod 777 /var/lock/cinder/
chown -R cinder:cinder /var/lock/cinder/

[root@controller ~]# ls -lrt /var/lock/
total 0
drwxrwxr-x 2 root   lock    40 Jun 27 13:41 lockdev
drwx------ 2 root   root    60 Jun 22 15:15 iscsi
drwxr-xr-x 2 root   root   100 Jun 24 16:06 subsys
drwxrwxrwx 2 cinder cinder  40 Jul  1 10:15 cinder
drwx------ 2 root   root    40 Jun 27 17:41 lvm

After that able to do successfull volume attach 
[root@controller ~]# ls /var/lock/cinder/* -lrt
-rw-r--r-- 1 cinder cinder 0 Jul  1 10:26 /var/lock/cinder/cinder-a8b88ce2-0084-4119-bca9-23f2d7361ae3
-rw-r--r-- 1 cinder cinder 0 Jul  1 10:24 /var/lock/cinder/cinder-4433d217-f046-444a-9f5c-65ab92a9aa83
After hours of struggle i realized that 
the this path "/var/lock/cinder" where cinder was a file not a directory 
(worngly created as file)
so deleted file and created cinder dir 

mkdir /var/lock/cinder
chmod 777 /var/lock/cinder/
chown -R cinder:cinder /var/lock/cinder/

[root@controller ~]# ls -lrt /var/lock/
total 0
drwxrwxr-x 2 root   lock    40 Jun 27 13:41 lockdev
drwx------ 2 root   root    60 Jun 22 15:15 iscsi
drwxr-xr-x 2 root   root   100 Jun 24 16:06 subsys
drwxrwxrwx 2 cinder cinder  40 Jul  1 10:15 cinder
drwx------ 2 root   root    40 Jun 27 17:41 lvm

After that able to do successfull volume attach 
[root@controller ~]# ls /var/lock/cinder/* -lrt
-rw-r--r-- 1 cinder cinder 0 Jul  1 10:26 /var/lock/cinder/cinder-a8b88ce2-0084-4119-bca9-23f2d7361ae3
-rw-r--r-- 1 cinder cinder 0 Jul  1 10:24 /var/lock/cinder/cinder-4433d217-f046-444a-9f5c-65ab92a9aa83