Wang,

That didn't seem to work! (though it might have been because i already
removed all references to that image from the tables)
[root@xcat ~]# rmvm vmmaster1 -p
Error: Invalid nodes and/or groups in noderange: vmmaster1
[root@xcat ~]#

So i tried doing it for another master image i had created and...this is
what happens:
[root@xcat moab]# tabdump vmmaster
#name,os,arch,profile,storage,storagemodel,nics,vintage,originator,comments,disable
"vmmaster02","centos5.5","x86_64","compute","nfs://xcat.core.cloud/vms/shared",,"eth0","Sun
Jul 24 12:10:49 2011","root",,
[root@xcat moab]# tabdump vm
#node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
"clonevm01","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,"vmmaster02",,,,,"vlan5",,,,,"VM
cloned from vm10",
[root@xcat moab]# rmvm vmmaster02 -p
Error: Invalid nodes and/or groups in noderange: vmmaster02
[root@xcat moab]#

Any thoughts on how i should remove it??

I also tried with "rmnimimage" (as someone had suggested in this mailing
list) but still no luck:
[root@xcat moab]# rmnimimage vmmaster02
Error: 'vmmaster02' is not a valid xCAT image name.

Error: Return=1.
[root@xcat moab]#

What is the correct approach to remove a master image?

Thanks,
Luis

On Sun, Jul 24, 2011 at 11:08 PM, Xiao Peng Wang <w...@cn.ibm.com> wrote:

>  I have modified the doc of vmware with the clone vm steps which discussed
> by you.
>
> Regarding how to remove the vm master, could you try to run the 'rmvm
> vmmaster -p'?
>
> Thanks
> Best Regards
> ----------------------------------------------------------------------
> Wang Xiaopeng (王晓朋)
> IBM China System Technology Laboratory
> Tel: 86-10-82453455
> Email: w...@cn.ibm.com
> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road,
> Haidian District Beijing P.R.China 100193
>
> [image: Inactive hide details for Luis Miguel Silva ---2011-07-25
> 02:20:18---Thanks! By the way, is there any way to cleanly remove a v]Luis
> Miguel Silva ---2011-07-25 02:20:18---Thanks! By the way, is there any way
> to cleanly remove a vmmaster image?
>
>
> From: Luis Miguel Silva <luismiguelferreirasi...@gmail.com>
> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> Date: 2011-07-25 02:20
>
> Subject: Re: [xcat-user] Problems with xCAT 2.6 (clonevm)
> ------------------------------
>
>
>
> Thanks!
>
> By the way, is there any way to cleanly remove a vmmaster image?
> I removed the image from the vmmaster table, removed previously cloned
> vms and removed the image from my nfs datastore but i'm now getting:
> [root@xcat ~]# clonevm -t vm10 vmmaster01
> vm10: Error: The name 'vmmaster01' already exists.
> [root@xcat ~]# ls /vms/shared/
> vm10  vm9
> [root@xcat ~]# tabdump vm
>
> #node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
>
> "vm9","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> auto created by Moab",
>
> "vm10","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> auto created by Moab",
> [root@xcat ~]# mkdir bla
> [root@xcat ~]# dumpxCATdb -p bla
> Backup Complete.
> [root@xcat ~]# cd bla
> [root@xcat bla]# grep vmmaster *
> [root@xcat bla]#
>
> Hmm, where is it getting this from?! heheh
>
>
> On Sun, Jul 24, 2011 at 12:07 PM, Jonathan Dye
> <j...@adaptivecomputing.com> wrote:
> > ah, yes.
> >
> > i forgot you have to add a vm.host before you attempt the clone.  this is
> different between kvm and esx.  i already wrote jarrod about it.
> >
> > - jonathan
> >
> > ----- Original Message -----
> > From: "Luis Miguel Silva" <luismiguelferreirasi...@gmail.com>
> > To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net>
> > Sent: Sunday, July 24, 2011 11:53:31 AM
> > Subject: Re: [xcat-user] Problems with xCAT 2.6 (clonevm)
> >
> > Thanks Jonathan!
> >
> > I was actually following the info in the man page / online wiki
> > article heheh ;o). [so...little note for whoever may be reading this
> > that maintains those sources of information, we need to update them!
> > heheh].
> >
> > By the way, your suggestion did not seem to fully work though, here's
> > what happened:
> > [root@xcat ~]# ls /vms/shared/
> > vm10  vm9
> > [root@xcat ~]# clonevm -t vm9 vmmaster01
> > vm9: Successfully copied to vmmaster01
> > [root@xcat ~]# ls /vms/shared/
> > vm10  vm9  vmmaster01
> > [root@xcat ~]# tabdump vm
> >
> #node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
> >
> "vm9","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> > auto created by Moab",
> >
> "vm10","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> > auto created by Moab",
> > [root@xcat ~]# tabdump vmmaster
> >
> #name,os,arch,profile,storage,storagemodel,nics,vintage,originator,comments,disable
> >
> "vmmaster01","centos5.5","x86_64","compute","nfs://xcat.core.cloud/vms/shared",,"eth0","Sun
> > Jul 24 11:28:15 2011","root",,
> > [root@xcat ~]# nodeadd clonevm01
> > groups=centos5.5-stateless,esxvmmgt,failgroup,moab,vlan5,all
> > [root@xcat ~]# clonevm clonevm01 -b vmmaster01
> > clonevm01: Error: Unable to identify plugin for this command, check
> > relevant tables: nodehm.mgt;nodehm.power,mgt
> > [root@xcat ~]#
> >
> > So i ended up adding the necessary nodehm entries:
> > [root@xcat ~]# tabdump nodehm
> >
> #node,power,mgt,cons,termserver,termport,conserver,serialport,serialspeed,serialflow,getmac,comments,disable
> > "ibm","ipmi","ipmi",,,,,,,,,,
> > "blades","hpilo","hpilo",,,,,,,,,,
> > "vm9","esx","esx",,,,,,,,,,
> > "vm10","esx","esx",,,,,,,,,,
> > "clonevm01","esx","esx",,,,,,,,,,
> > [root@xcat ~]#
> >
> > But that still would not work:
> > [root@xcat ~]# clonevm clonevm01 -b vmmaster01
> > no host or cluster defined for guest clonevm01
> > [root@xcat ~]#
> >
> > So i added the vm to the "vm" table and...
> > [root@xcat ~]# tabdump vm
> >
> #node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
> >
> "vm9","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> > auto created by Moab",
> >
> "vm10","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> > auto created by Moab",
> >
> "clonevm01","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,"vmmaster01",,,,,"vlan5",,,,,"VM
> > auto created by Moab",
> > [root@xcat ~]# clonevm clonevm01 -b vmmaster01
> > clonevm01: Successfully cloned from vmmaster01
> > [root@xcat ~]#
> >
> > This time it seemed to work!
> >
> > I'm not very happy with how it works though... :o)
> > I understand it is necessary to specify the hypervisor where the VM
> > should be placed BUT "clonevm" should be smart enough to do that!
> > I basically manually "reconfigured everything", the experience is
> > almost the same as adding a new vm (and that's not what i expected)...
> >
> > I also noticed the "clonevm master creation" step did not update the
> > vm.master field for the vm i cloned from...
> > Which isn't consistent with how things work for KVM (well, at least
> > not according to what you showed me)...
> >
> > Either way, it seems to be working, i guess :o).
> >
> > Thanks!
> > Luis
> >
> > On Sun, Jul 24, 2011 at 10:34 AM, Jonathan Dye
> > <j...@adaptivecomputing.com> wrote:
> >> you don't specify a full path for a clone, and you have the arguments
> backward.  you'll have to make a new VM since it rebased vm5 to the vm
> master called 'nfs_+JQ-2f+JQ-2f10.0.2.31+JQ-2fvms+JQ-2fshar'.  then, you'll
> make a new master like this:
> >>
> >> clonevm -t [new_stateful_vm] vmmaster3
> >>
> >> and you use it like this:
> >>
> >> nodeadd vm6 groups=...
> >> clonevm vm6 -b vmmaster3
> >>
> >> you raise an interesting point of how to distribute the read load for
> the same master between different datastores (we probably need a way to make
> copies of masters).
> >>
> >> - jonathan
> >>
> >> ----- Original Message -----
> >> From: "Luis Miguel Silva" <luismiguelferreirasi...@gmail.com>
> >> To: "xCAT Users Mailing list" <xcat-user@lists.sourceforge.net>
> >> Sent: Sunday, July 24, 2011 2:06:00 AM
> >> Subject: [xcat-user] Problems with xCAT 2.6 (clonevm)
> >>
> >> Dear all,
> >>
> >> I'm having some trouble cloning a vmware vm with clone vm.
> >>
> >> I followed the instructions in the "xCAT Virtualization with VMWare"
> >> wiki article (
> http://sourceforge.net/apps/mediawiki/xcat/index.php?title=XCAT_Virtualization_with_VMWare#Clone_a_virtual_machine_node
> )
> >>
> >> But it does not seem to work:
> >> [root@xcat ~]# clonevm vm5 -t nfs://10.0.2.31/vms/shared/vmmaster
> >> vm5: Successfully copied to nfs: //10.0.2.31/vms/shared/vmmaster
> >> [root@xcat ~]# tabdump vm
> >>
> #node,host,migrationdest,storage,storagemodel,cfgstore,memory,cpus,nics,nicmodel,bootorder,clockoffset,virtflags,master,vncport,textconsole,powerstate,beacon,datacenter,guestostype,othersettings,vidmodel,vidproto,comments,disable
> >>
> "vm5","blade03",,"nfs://xcat.core.cloud/vms/shared",,"nfs://xcat.core.cloud/vms/shared","2048","2","eth0",,,,,,,,,,"vlan5",,,,,"VM
> >> auto created by Moab",
> >> [root@xcat ~]# ls /vms/shared/ -al
> >> total 24
> >> drwxr-xr-x 4 root root 4096 Jul 24 01:39 .
> >> drwxr-xr-x 5 root root 4096 Jul 20 12:41 ..
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:41
> >> nfs_+JQ-2f+JQ-2f10.0.2.31+JQ-2fvms+JQ-2fshar
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:41 vm5
> >> [root@xcat ~]#
> >>
> >> Also, i tried creating the vm without specifying the nfs path (since
> >> clonevm's man page mentioned nothing about it) and...
> >> [root@xcat ~]# ls -l /vms/shared/
> >> total 20
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:41
> >> nfs_+JQ-2f+JQ-2f10.0.2.31+JQ-2fvms+JQ-2fshar
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:46
> >> nfs_+JQ-2f+JQ-2fxcat.core.cloud+JQ-2fvms+JQ
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:48 vm5
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:46 vm6
> >> drwxr-xr-x 2 root root 4096 Jul 24 01:48 vmmaster2
> >> [root@xcat ~]#
> >>
> >> This time, xCAT did create a "vmmaster2" directory (and i briefly saw
> >> some references to "vmmaster2" on the hypervisor).
> >>
> >> The problem is that "clonevm -b vmmaster2 clonevm1" does not work,
> >> because xCAT does not find vmmaster2 anywhere:
> >> [root@xcat ~]# clonevm -b vmmaster2 clonevm1
> >> Error: Invalid nodes and/or groups in noderange: vmmaster2
> >> [root@xcat ~]#
> >>
> >> Isn't xCAT supposed to edit the "vm" table and set vm.master on the
> >> source vm to "vmmaster2" ?
> >>
> >> Any thoughts on what might be happening?
> >>
> >> p.s. i'm using xCAT-2.6.1-snap201106151110.
> >>
> >> Thank you,
> >> Luis
> >>
> >>
> ------------------------------------------------------------------------------
> >> Magic Quadrant for Content-Aware Data Loss Prevention
> >> Research study explores the data loss prevention market. Includes
> in-depth
> >> analysis on the changes within the DLP market, and the criteria used to
> >> evaluate the strengths and weaknesses of these DLP solutions.
> >> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> >> _______________________________________________
> >> xCAT-user mailing list
> >> xCAT-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/xcat-user
> >>
> >>
> ------------------------------------------------------------------------------
> >> Magic Quadrant for Content-Aware Data Loss Prevention
> >> Research study explores the data loss prevention market. Includes
> in-depth
> >> analysis on the changes within the DLP market, and the criteria used to
> >> evaluate the strengths and weaknesses of these DLP solutions.
> >> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> >> _______________________________________________
> >> xCAT-user mailing list
> >> xCAT-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/xcat-user
> >>
> >
> >
> ------------------------------------------------------------------------------
> > Magic Quadrant for Content-Aware Data Loss Prevention
> > Research study explores the data loss prevention market. Includes
> in-depth
> > analysis on the changes within the DLP market, and the criteria used to
> > evaluate the strengths and weaknesses of these DLP solutions.
> > http://www.accelacomm.com/jaw/sfnl/114/51385063/
> > _______________________________________________
> > xCAT-user mailing list
> > xCAT-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xcat-user
> >
> >
> ------------------------------------------------------------------------------
> > Magic Quadrant for Content-Aware Data Loss Prevention
> > Research study explores the data loss prevention market. Includes
> in-depth
> > analysis on the changes within the DLP market, and the criteria used to
> > evaluate the strengths and weaknesses of these DLP solutions.
> > http://www.accelacomm.com/jaw/sfnl/114/51385063/
> > _______________________________________________
> > xCAT-user mailing list
> > xCAT-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xcat-user
> >
>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
>
> ------------------------------------------------------------------------------
> Storage Efficiency Calculator
> This modeling tool is based on patent-pending intellectual property that
> has been used successfully in hundreds of IBM storage optimization engage-
> ments, worldwide.  Store less, Store more with what you own, Move data to
> the right place. Try It Now!
> http://www.accelacomm.com/jaw/sfnl/114/51427378/
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>

<<graycol.gif>>

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to