The invention discloses a
Cinder-based volume cross-cluster mounting method and
system. The method comprises the steps of obtaining request information, used for mounting a volume to a
virtual machine, of a user; obtaining identity information of a host in which the
virtual machine is located according to an ID parameter of the
virtual machine in the request information; obtaining
iSCSI connector information of the host; calling virtualized
adaptation information of volume management in a cloud platform by
Cinder according to the
iSCSI connector information; mounting the volume as a storage device to the host according to the virtualized
adaptation information of the volume management in the cloud platform by the
Cinder through an
SCSI command; and mapping the successfully mounted volume into the virtual
machine. The Cinder can shield virtualized difference of the volume and change of a virtualized interface, the volume is mounted to the host through the
SCSI command, and the successfully mounted storage device is mapped into the virtual
machine for the user to use; and the volume is mounted through the Cinder, so that the problem that the volume cannot be subjected to cross-cluster mounting is solved, the volume management operation is simplified, management logic is reified, the
management efficiency is improved, and the problem of non-uniform storage
resource allocation is solved.