[one-users] OpenNebula didn't delete the disk.id file when I detach the disk from VM

Ruben S. Montero rsmontero at opennebula.org
Mon Nov 5 11:20:20 PST 2012


Hi

Thanks for the feedback!.

Yes you may need to re-do the changes after upgrading. I've just filled a
bug to fix this.

http://dev.opennebula.org/issues/1635

Cheers

Ruben



On Mon, Nov 5, 2012 at 9:13 AM, zouxinzhe <zouxinzhe at gmail.com> wrote:

> **
> I have modify the script to remove the file disk.* whenever I detach it.
> Now everything seems well.
> But
> I wonder if this problem will reproduce when I upgrade my OpenNebula in the future?
>
> ------------------------------
> zouxinzhe
>
>  *From:* Ruben S. Montero <rsmontero at opennebula.org>
> *Date:* 2012-11-03 00:32
> *To:* zouxinzhe <zouxinzhe at gmail.com>
> *CC:* Jaime Melis <jmelis at opennebula.org>; Users OpenNebula<users at lists.opennebula.org>
> *Subject:* Re: [one-users] OpenNebula didn't delete the disk.id file when
> I detach the disk from VM
>  Please take a look at:
>
>
> http://lists.opennebula.org/pipermail/users-opennebula.org/2012-October/020809.html
>
> Let us know if this works for you... note that in your case you may need
> to modify the delete script from the lvm drivers...
>
>
> On Fri, Nov 2, 2012 at 11:24 AM, zouxinzhe <zouxinzhe at gmail.com> wrote:
>
>> **
>>  Hi,there are some other question I have.
>> I wanna attach a disk to my VM.I have create a image in LVM datastore :
>> *oneimage create -d 100 --name volume1 --type DATABLOCK --size 1024
>> --fstype ext4*
>> All is OK.Then I use this image to attach a disk to a VM :
>> *onevm attachdisk one-12 --image volume1 --target vdaa*
>> The OpenNebula has make a snapshot and ln this snapshot to the disk.2.
>> However when I detach the disk from VM, OpenNebula remove the lv but it
>> doesn't remove the disk.2.
>> So it will be fail when I try to attach another disk to that VM,
>> following is the error log:
>> *ln -s "/dev/vg_node176/lv-one-13-12-2"
>> "/opt/nebula/ONE/var/datastores/0/12/disk.2"" failed: ln: creating symbolic
>> link `/opt/nebula/ONE/var/datastores/0/12/disk.2': File exists*
>> Is that a BUG?
>>
>>  zouxinzhe
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121105/9d4868ee/attachment-0002.htm>


More information about the Users mailing list