Skip to content

EGRID website

Sections
Personal tools
You are here: Home » Documentation » Grid Knowledge Base » Cancellazione manuale di entry in LFC

Cancellazione manuale di entry in LFC

Cancellazione manuale, tramite manipolazione dei dati di MYSQL, di entry del catalogo che non riescono a cancellarsi tramite i comandi di lfc

Descrizione del Problema:

Si tenta di cancellare una entry, la qualenon riesce ad essere cancellata:

lfc-rm /grid/egrid/tmp/TEST_egrid-ui-self-test_aterpin@egrid-4.egrid.it_29727
/grid/egrid/tmp/TEST_egrid-ui-self-test_aterpin@egrid-4.egrid.it_29727: File exists

Soluzione:

Colleggarsi al database Mysql presente sulla macchina ove risiede il catalogo [egrid-2.egrid.it]

root@egrid-2:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2442 to server version: 4.0.23-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

Colleggarsi usare il database del catalogo:

mysql> use cns_db;

Il Database é composto da varie tabelle

Selezionare il fileid del file da eliminare dalla tabella Cns_file_metadata

select fileid from Cns_file_metadata  where   name='TEST_egrid-ui-self-test_aterpin@egrid-4.egrid.it_29727';

Cancellare dalla tabella Cns_file_replica le entry relative al fileid individuato

delete from Cns_file_replica where fileid='30';

Cancellare dalla tabella Cns_symlinks le entry relative al fileid individato

delete from Cns_symlinks where fileid='30';

Ora é posibile cancellarre la entry dalla tabella Cns_file_metadata

delete from Cns_file_metadata where fileid='30';
Created by aterpin
Contributors : Alessio Terpin
Last modified 2006-09-20 06:02
 

Powered by Plone

This site conforms to the following standards: