I think
 
    psql postgres postgres -c "delete from fscc.filesystem_mounts"'
 
ran as root should do the trick.
 
Mit freundlichen Grüßen / Kind regards

 
 
  •      
  • Dr. Alexander Wolf-Reber
    Spectrum Scale container native architect
    Department M069 / Spectrum Scale Software Development

    +49-160-90540880
    a.wolf-reber@de.ibm.com

IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Gregor Pillen / Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

 
 
----- Original message -----
From: "Oesterlin, Robert" <Robert.Oesterlin@nuance.com>
Sent by: gpfsug-discuss-bounces@spectrumscale.org
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Cc:
Subject: [EXTERNAL] Re: [gpfsug-discuss] GUI: FILESYSTEM_MOUNT returns ERROR: duplicate key value violates unique constraint
Date: Wed, Mar 17, 2021 15:30
 

Can you give me details on how to do this? I tried this:

 

[root@ess1ems ~]# su postgres -c 'psql -d postgres -c "delete from fscc.filesystem_mounts"'

could not change directory to "/root"

psql: FATAL:  Peer authentication failed for user "postgres"

 

 

Bob Oesterlin

Sr Principal Storage Engineer, Nuance

 

 

From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Alexander Wolf <A.Wolf-Reber@de.ibm.com>
Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Date: Wednesday, March 17, 2021 at 9:19 AM
To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org>
Subject: [EXTERNAL] Re: [gpfsug-discuss] GUI: FILESYSTEM_MOUNT returns ERROR: duplicate key value violates unique constraint

 

CAUTION: This Email is from an EXTERNAL source. Ensure you trust this sender before clicking on any links or attachments.


This is strange, the Java code should only try to insert rows that are not already there. If it was just the insert for the duplicate row we could ignore it. But this is a batch insert failing and therefore the FILESYSTEM_MOUNTS table does not get updated anymore. A quick fix is to launch the psql client and do a "delete from fscc.filesystem_mounts" to clear the table and run the FILESYSTEM_MOUNT task afterwards to repopulate it.

 

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=Ca33Jr06KzzO4hjuWcM4iQ5J_E1MZR_xSRWwuh6yfsw&m=rg4LOOKhonaORwtrzabpITMM7A6k8GLwlDTyyCYKn6k&s=MGL4i6DG2p1WlFvmP8S1oqNTZbSgrWoR7bzSbQUexiE&e=