Skip to main content

Veritca - Drop node / remove node on virtual environment when machine is already terminated


in our case I was trying to add 5 nodes to Vertica 10 nodes cluster.
while adding the new nodes we were facing some problems with the file system and we were forced to terminate the new machines.
we fixed the VM image and recreated the nodes in order to scale out Vertica cluster again.

during this process we were keep getting an errors message like:
"node x already exists" while running the add nodes command
(although we removed them from admintools.conf and from the cluster using:
/opt/vertica/sbin/install_vertica --remove-hosts)

finally,
we found out a solution that was very helpful in our case and is not documented well in Vertica documentation, (we were not able to find it there)
drop node command.

DROP NODE <node_name>;  

probably leftovers of the first scale out run were stayed in the database metadata itself,
I guess that when we terminated the new nodes after the first try we didn't notice that one of the nodes were still part of the cluster

dbadmin=> select node_name from nodes;

node_name 
--------------

v_vdb_node001
v_vdb_node002
v_vdb_node003
v_vdb_node004
v_vdb_node005
v_vdb_node006
v_vdb_node007
v_vdb_node008
v_vdb_node009
v_vdb_node010
v_vdb_node011
dbadmin=> drop node v_db_node0011;
DROP NODE
dbadmin=> select node_name from nodes;

node_name 
--------------

v_vdb_node001
v_vdb_node002
v_vdb_node003
v_vdb_node004
v_vdb_node005
v_vdb_node006
v_vdb_node007
v_vdb_node008
v_vdb_node009
v_vdb_node010

Comments

Popular posts from this blog

ORA-27104: system-defined limits for shared memory was misconfigured

I faced this error while trying to restore & recover of a PDB (pluggable database) part of the log file and the solution is described here below: log: initialization parameters used for automatic instance: db_name=CDB db_unique_name=gbux_pitr_PDB1_CDB compatible=12.1.0.2.0 db_block_size=8192 db_files=200 diagnostic_dest=/oracle/app/oracle _system_trig_enabled=FALSE sga_target=1888M processes=200 db_create_file_dest=/oracle/auxilary log_archive_dest_1='location=/oracle/auxilary' enable_pluggable_database=true _clone_one_pdb_recovery=true #No auxiliary parameter file used starting up automatic instance CDB RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 07/31/2016 16:22:20 RMAN-04014: startup failed: ORA-27104: system-defined limits for shared

mount.nfs: backgrounding

if you face this kind of error with your remote NFS: [root@Vertica000 ~]# mount /files/application/Rremote3 mount.nfs: backgrounding "10.0.0.2:/files/application/remoteFiles" mount.nfs: mount options: "bg,hard,nointr,rsize=65536,wsize=65536,tcp,actimeo=0,vers=3,timeo=600,addr=10.0.0.2" look for the problem in the log file: cat /var/log/messages | grep mount  mount to NFS server '10.0.0.2' failed: timed out, retrying Solution: In most of the cases, you have a problem with your iptables in the destination server login as root to dest server (10.0.0.2) in my case and type this command: iptables --flush  the go back to your origin server to try remount the problematic NFS file system of course this is in case nfs server was installed and functioning properly. Good luck.

ora-65035 while create pluggable database from another one

or : ORA-21000: error number argument to raise_application_error of -65035 is out of range Cause: this error caused because of an unrecoverable transaction in the source DB. Solution: 1. either stop and start your pluggable source DB 2. identify the open transaction and kill it if you can. use this query to do so: select * from v$transaction t,v$session  s where t.ses_addr = s.saddr;