how to remove a specific disk from an instance ?

990 views
Skip to first unread message

Jean-François Maeyhieux

unread,
Nov 13, 2012, 1:10:50 PM11/13/12
to gan...@googlegroups.com

 So now I know how to add a disk on an instance but i don't have find a way to remove a specific disk on an instance.

I get an instance with two disk:
- disk/0 (/boot + /)
- disk/1 (/data)

I wish to remove the second one in my case but that could be to remove the 11th one on 20 for exemple.
How could I do it ?

I've read old issue on that case but that was for old ganeti version. I use ganeti 2.6.1

Jean-Francois

tschend

unread,
Nov 13, 2012, 3:08:34 PM11/13/12
to ganeti
Hi Jean-Francois,

take a look at gnt-instance modify docs.

http://docs.ganeti.org/ganeti/current/man/gnt-instance.html

--disk 11:remove should work.

Kind Regards
Thomas

On 13 Nov., 19:10, Jean-François Maeyhieux <zen2dr...@gmail.com>
wrote:

Guido Trotter

unread,
Nov 14, 2012, 3:24:57 AM11/14/12
to gan...@googlegroups.com
Does it? From what I read on that page, and from my memory, we still only can remove the "last" disk, short of hand editing the config file. There should already be an issue filed for this.

Thanks,

Guido

Iustin Pop

unread,
Nov 14, 2012, 3:30:52 AM11/14/12
to gan...@googlegroups.com
On Wed, Nov 14, 2012 at 09:24:57AM +0100, Guido Trotter wrote:
> Does it? From what I read on that page, and from my memory, we still only
> can remove the "last" disk, short of hand editing the config file. There
> should already be an issue filed for this.

No, that (IIRC) has been fixed for a while.

iustin

Guido Trotter

unread,
Nov 14, 2012, 3:33:06 AM11/14/12
to gan...@googlegroups.com
Ah, right. The manpage has this info but not all of it. Will send a patch.
--
Guido Trotter
SRE - Corp Computing Services (aka Horsepower)
Google Germany

Jean-François Maeyhieux

unread,
Nov 14, 2012, 4:33:27 AM11/14/12
to gan...@googlegroups.com

Allright, it's explain in manpage but in the part about "The  --disk add:size=SIZE  option".
That could be beeter to have a paragraph on the disk/remove option.

And where is a wrong parameters description in the man page:

MODIFY SECTION:

 [--disk add:size=SIZE[,vg=VG][,metavg=VG] | --disk remove |
        --disk N:mode=MODE]

should be

 [--disk add:size=SIZE[,vg=VG][,metavg=VG] | --disk N:remove |
        --disk N:mode=MODE]


Thanks

    Jean-François

Guido Trotter

unread,
Nov 14, 2012, 4:39:11 AM11/14/12
to gan...@googlegroups.com
On Wed, Nov 14, 2012 at 10:33 AM, Jean-François Maeyhieux <zen2...@gmail.com> wrote:

Allright, it's explain in manpage but in the part about "The  --disk add:size=SIZE  option".
That could be beeter to have a paragraph on the disk/remove option.


For now I haven't split the paragraphs, but I'm sure just the fact that the index is reported makes everything clearer, and of course taking the hint one will look for --remove on the page.

 
And where is a wrong parameters description in the man page:

MODIFY SECTION:

 [--disk add:size=SIZE[,vg=VG][,metavg=VG] | --disk remove |
        --disk N:mode=MODE]

should be

 [--disk add:size=SIZE[,vg=VG][,metavg=VG] | --disk N:remove |
        --disk N:mode=MODE]



I just sent a patch to fix this, as mentioned, and it will be released as part of the next 2.6 stable release.

Thanks,

Guido

Reply all
Reply to author
Forward
0 new messages