cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Comerford <davest...@gmail.com>
Subject Re: How to find the the vm's volume file in primary storage?
Date Fri, 05 Jul 2013 14:14:27 GMT
1. Rock over to the GUI, click on the instance your interested in

2. Get the ID of the volume from the Volumes tab. For example
4bedcf64-5526-4777-bac1-98c638c32116

3. Jump into MySQL client and run this query:
mysql> select folder,path from cloud.volumes WHERE
uuid='4bedcf64-5526-4777-bac1-98c638c32116' \G
*************************** 1. row ***************************
folder: /mnt/volgroup/primary1/export
  path: 12485e60-5700-4783-a8b5-b34a03e4bc3b
1 row in set (0.00 sec)
4. So the path to your volume's file will be folder+path.vhd, which in my
case here will be:
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd

Just to prove it:
# du -h
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd
267M
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd
CloudMonkley> destroy virtualmachine id=ee781871-ba63-41e0-835a-cde5edfefcfb

*twiddle thumbs waiting for expunge*

# du -h
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd
du: cannot access
`/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd':
No such file or directory
Disk is gone. The theory is sound.
Hope this helps.


Best regards,
David Comerford
Mobile: +353 87 1238295
Email: davestyle@gmail.com
Website: http://dave.ie
PGP key: http://pgp.dave.ie


On 2 July 2013 18:37, David Ortiz <dportiz@outlook.com> wrote:

> I am not sure how the generation occurs, but they are stored in the
> volumes table.  The id column relates to the uuid in the gui, and the path
> column is what the file name is I believe.
> Thanks,     David Ortiz
>
> > Date: Wed, 26 Jun 2013 19:27:29 -0700
> > Subject: Re: How to find the the vm's volume file in primary storage?
> > From: kirk.jantzer@gmail.com
> > To: users@cloudstack.apache.org
> >
> > I haven't looked, but I think they would be correlated to each other in
> the
> > database tables, or possibly via the api.
> >
> > Regards,
> >
> > Kirk Jantzer
> > http://about.me/kirkjantzer
> > On Jun 26, 2013 10:10 PM, "WXR" <474745079@qq.com> wrote:
> >
> > > My primary storage is NFS.
> > > When I mount it and list the files in it, I can see lots of files
> named as
> > > uuid.I think they are vm volume files.
> > > But the uuid does not match to any vm's uuid or volumes uuid displayed
> in
> > > the cloudstack UI,so if I want to find a vm's volume file on primary
> > > storage NFS,I don't know which is the correct one.
> > >
> > > Can anybody tell me the relationship between the vm and the volume
> file?
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message