[one-users] Unable to attach raw disk to vm

Marco Lanzotti - AD Glamor marco.lanzotti at adglamor.com
Wed Jan 22 09:25:20 PST 2014


Hi all, I'm unable to attach a row device to a running vm.

log:

Wed Jan 22 16:59:21 2014 [VMM][D]: Message received: LOG I 27
Successfully execute transfer manager driver operation: tm_attach.

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Command
execution fail: /var/tmp/one/vmm/kvm/attach_disk 'one-27'
'/var/lib/one//datastores/0/27/disk.3' 'hdd' '3' 'PFZ[...]Pg==' 27 metal10

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG E 27
attach_disk: Command "virsh --connect qemu:///system attach-device
one-27 /var/lib/one//datastores/0/27/disk.3.attach" failed: error:
Failed to attach device from /var/lib/one//datastores/0/27/disk.3.attach

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 error:
Unable to allow access for disk path
/var/lib/one//datastores/0/27/disk.3: No such file or directory

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG E 27 Could not
attach /var/lib/one//datastores/0/27/disk.3 (hdd) to one-27

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 ExitCode: 1

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: LOG I 27 Failed to
execute virtualization driver operation: attach_disk.

Wed Jan 22 16:59:22 2014 [VMM][D]: Message received: ATTACHDISK FAILURE
27 Could not attach /var/lib/one//datastores/0/27/disk.3 (hdd) to one-27


some informations:


~$ oneimage show 23
IMAGE 23
INFORMATION                                                           
ID             : 23                 
NAME           : vdb01.data         
USER           : oneadmin           
GROUP          : oneadmin           
DATASTORE      : ceph               
TYPE           : DATABLOCK          
REGISTER TIME  : 01/22 14:27:49     
PERSISTENT     : Yes                
SOURCE         : one/one-23         
FSTYPE         : ext4               
SIZE           : 100G               
STATE          : rdy                
RUNNING_VMS    : 0                  

PERMISSIONS                                                                    

OWNER          : um-                
GROUP          : ---                
OTHER          : ---                

IMAGE
TEMPLATE                                                                 
DEV_PREFIX="hd"

VIRTUAL MACHINES


~$ onevm show 27
VIRTUAL MACHINE 27
INFORMATION                                                 
ID                  : 27                 
NAME                : vdb01              
USER                : oneadmin           
GROUP               : oneadmin           
STATE               : ACTIVE             
LCM_STATE           : RUNNING            
RESCHED             : No                 
HOST                : metal10            
START TIME          : 01/22 13:43:37     
END TIME            : -                  
DEPLOY ID           : one-27             

VIRTUAL MACHINE
MONITORING                                                     
USED MEMORY         : 25G                
USED CPU            : 0                  
NET_RX              : 65.8M              
NET_TX              : 2.4M               

PERMISSIONS                                                                    

OWNER               : um-                
GROUP               : ---                
OTHER               : ---                

VM
DISKS                                                                       

 ID TARGET IMAGE                               TYPE SAVE SAVE_AS
  0 hda    vdb01                               rbd   YES       -
  1 hdc    10G                                 swap   NO       -

VM
NICS                                                                        

 ID NETWORK              VLAN BRIDGE       IP              MAC             
  0 Private Network        no lan0         XXX.XXX.XXX.51  02:00:c0:a8:bf:33
                                           fe80::400:c0ff:fea8:bf33

VIRTUAL MACHINE
HISTORY                                                        
SEQ HOST            ACTION           REAS           START       
TIME     PROLOG
  0 metal10         none             none  01/22 13:43:40   0d 03h37m  
0h00m04s

USER
TEMPLATE                                                                  
CLUSTER_100="100"
ERROR="Wed Jan 22 16:59:22 2014 : Error attaching new VM Disk: Could not
attach /var/lib/one//datastores/0/27/disk.3 (hdd) to one-27"
SCHED_REQUIREMENTS="CLUSTER_ID=\"100\""

VIRTUAL MACHINE
TEMPLATE                                                       
AUTOMATIC_REQUIREMENTS="CLUSTER_ID = 100"
CONTEXT=[
  DISK_ID="2",
  ETH0_DNS="XXX.XXX.XXX.1 XXX.XXX.XXX.2",
  ETH0_IP="XXX.XXX.XXX.51",
  ETH0_MASK="255.255.255.0",
  ETH0_NETWORK="XXX.XXX.XXX.0",
  NETWORK="YES",
  TARGET="hdb" ]
CPU="8"
FEATURES=[
  ACPI="yes",
  PAE="no" ]
GRAPHICS=[
  LISTEN="0.0.0.0",
  PORT="5927",
  TYPE="VNC" ]
MEMORY="25600"
OS=[
  ARCH="x86_64",
  BOOT="hd" ]
TEMPLATE_ID="12"
VCPU="8"
VMID="27"


Thank you,
Marco


More information about the Users mailing list