Rename XenServer Pool

XenCenter:

  1. Rename pool in XenCenter

fsi Server:

  1. Rename pool dir in /opt/fsi/inst/xen<version>/ks/pool/
    mv <old poolname> <new poolname>
  2. Rename in the pool dir in the file pool.ok the pool name
    sed -i s/<old poolname>/<new poolsname> pool.ok 
  3. Rename pool in all servers config dir in this pool /opt/fsi/pxe/sys/env_<environment>/<mac>/active/xen<version>.conf the var pool=
    for f in $(grep -l /opt/fsi/pxe/sys/env_<environment>/*/active/xen?.conf); do echo Modify file $f; sed -i.bak 's/<old poolname>/<new poolname>/g' $f; done
  4. recreate fsi db (check if there is any installation running)
    fsictl new

XenServer:

  1. Rename pool on all servers in this pool in the local config /var/fsi/xen<version>.conf the value of the var pool= and every flag_xxx= var
    fsictl tool rmc -p <new pool name> -j "sed -i 's/<old poolname>/<new poolname>/' /var/fsi/xen?.conf"