public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
* [PVE-User] Temporary add a node to a cluster...
@ 2020-07-25 12:52 Marco Gaiarin
  2020-07-25 17:38 ` Yannis Milios
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Gaiarin @ 2020-07-25 12:52 UTC (permalink / raw)
  To: pve-user


I need to do a P2V 'in place' for a server, and i can use for that a
'test cluster' (two HP Microserver) i own.
But the final result would be two different clusters.

Also, i don't have too much space or time, so my idea is (as just done
before):

1) P2V the server in my test cluster

2) reinstall the server with pve, join to the cluster

3) migrate the VM to the server.

4) 'detach' the cluster, eg, following:

	https://pve.proxmox.com/wiki/Cluster_Manager

 delete from server my test cluster and delete from test cluster my
 server.


But is this way the server will belong to my 'test cluster', and
clusters cannot be renamed, right?

There's some way to 'uncluster' a server?


Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PVE-User] Temporary add a node to a cluster...
  2020-07-25 12:52 [PVE-User] Temporary add a node to a cluster Marco Gaiarin
@ 2020-07-25 17:38 ` Yannis Milios
  2020-08-04 12:22   ` Marco Gaiarin
  0 siblings, 1 reply; 4+ messages in thread
From: Yannis Milios @ 2020-07-25 17:38 UTC (permalink / raw)
  To: PVE User List

Are you trying to convert (P2V) a physical server into a VM and then after
repurpose the same server into a standalone PVE host?
If so, then definitely it won't be quick, especially without some kind of
shared storage.

You could potentially reduce the time needed by following these steps...

- P2V your physical server into a VM at your test PVE cluster.

- Shutdown original server and then start its VM version on your test
cluster. Leave it running there for some days and see if everything
is working properly.

- Repurpose original server into a PVE host but do _not_ add it as a new
cluster member on your test cluster. Just connect it to the same physical
network.

- Start copying the running VM onto this standalone PVE host. You could use
rsync for example or zfs send/recv if you are using ZFS at both sides.

- Once transfer is finished,  shutdown the VM on the test cluster and then
immediately do a final rsync or zfs send/receive so that the latest changes
are replicated on the target server.

- Create a new VM on standalone server and attach the VM disk onto it.

- Start the VM on standalone server and delete it from your test cluster.



Yannis



On Sat, 25 Jul 2020 at 14:00, Marco Gaiarin <gaio@sv.lnf.it> wrote:

>
> I need to do a P2V 'in place' for a server, and i can use for that a
> 'test cluster' (two HP Microserver) i own.
> But the final result would be two different clusters.
>
> Also, i don't have too much space or time, so my idea is (as just done
> before):
>
> 1) P2V the server in my test cluster
>
> 2) reinstall the server with pve, join to the cluster
>
> 3) migrate the VM to the server.
>
> 4) 'detach' the cluster, eg, following:
>
>         https://pve.proxmox.com/wiki/Cluster_Manager
>
>  delete from server my test cluster and delete from test cluster my
>  server.
>
>
> But is this way the server will belong to my 'test cluster', and
> clusters cannot be renamed, right?
>
> There's some way to 'uncluster' a server?
>
>
> Thanks.
>
> --
> dott. Marco Gaiarin                                     GNUPG Key ID:
> 240A3D66
>   Associazione ``La Nostra Famiglia''
> http://www.lanostrafamiglia.it/
>   Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento
> (PN)
>   marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f
> +39-0434-842797
>
>                 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
>       http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
>         (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
>
>
> _______________________________________________
> pve-user mailing list
> pve-user@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
> --
Sent from Gmail Mobile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PVE-User] Temporary add a node to a cluster...
  2020-07-25 17:38 ` Yannis Milios
@ 2020-08-04 12:22   ` Marco Gaiarin
  2020-08-04 16:08     ` Yannis Milios
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Gaiarin @ 2020-08-04 12:22 UTC (permalink / raw)
  To: pve-user

Mandi! Yannis Milios
  In chel di` si favelave...

> Are you trying to convert (P2V) a physical server into a VM and then after
> repurpose the same server into a standalone PVE host?

Yes.


> - Start copying the running VM onto this standalone PVE host. You could use
> rsync for example or zfs send/recv if you are using ZFS at both sides.

I've used this method, zfs send/recv. Worked like a charme! Wonderful.

Only one note; now my volumes have a '@--head-- snapshot, eg:

	root@phisrita:~# zfs list -t snapshot
	NAME                                USED  AVAIL     REFER  MOUNTPOINT
	rpool/data/vm-100-disk-0@--head--   116M      -     6.19G  -
	rpool/data/vm-100-disk-1@--head--  2.31M      -     13.2G  -
	rpool/data/vm-100-disk-2@--head--  2.29M      -     31.6G  -

They can harm? How can i get rid of these?

I don't see this snapshot on PVE console...


Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PVE-User] Temporary add a node to a cluster...
  2020-08-04 12:22   ` Marco Gaiarin
@ 2020-08-04 16:08     ` Yannis Milios
  0 siblings, 0 replies; 4+ messages in thread
From: Yannis Milios @ 2020-08-04 16:08 UTC (permalink / raw)
  To: Proxmox VE user list

On Tue, 4 Aug 2020 at 13:30, Marco Gaiarin <gaio@sv.lnf.it> wrote:

>
>         root@phisrita:~# zfs list -t snapshot
>         NAME                                USED  AVAIL     REFER
> MOUNTPOINT
>         rpool/data/vm-100-disk-0@--head--   116M      -     6.19G  -
>         rpool/data/vm-100-disk-1@--head--  2.31M      -     13.2G  -
>         rpool/data/vm-100-disk-2@--head--  2.29M      -     31.6G  -
>
> They can harm? How can i get rid of these?
>

I'm not sure how those snapshots were created, perhaps they exist on the
source (or were created automatically by your zfs replication tool) ?
Anyhow it shouldn't harm if you just use 'zfs destroy' to remove the
snapshots if you do not need them. The important part would be to check if
that VM is running properly on its new host (and of course back it up
somewhere else just in case something goes wrong).

Y.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-04 16:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-25 12:52 [PVE-User] Temporary add a node to a cluster Marco Gaiarin
2020-07-25 17:38 ` Yannis Milios
2020-08-04 12:22   ` Marco Gaiarin
2020-08-04 16:08     ` Yannis Milios

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal