elegant file locked on centos7 server

Moderators: cyao, michael_borland

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

elegant file locked on centos7 server

Post by Hexin » 03 Nov 2020, 03:45

I install elegant and sddstoolkit on a centos7 server without root permission by the rpm packages,
SDDSToolKit-5.0-1.rhel.7.x86_64.rpm and elegant-2020.4.0-5.rhel.7.openmpi.x86_64.rpm.

The sddstoolkits can perform normally but elegant has a file writing bug:
when I perform an example from the official website,It had a problem and reported an error:

Code: Select all

Error:
unable to open file run.acc for writing--file is locked (SDDS_InitializeOutput)
Error:
Unable to open file "run.fin" for reading (SDDS_InitializeInput)
Error:
Unable to open file "run.cen" for reading (SDDS_InitializeInput)
Error:
Unable to read layout--no header lines found (SDDS_ReadLayout)
Error:
Unable to open file "run.los" for reading (SDDS_InitializeInput)
What can I do to run elegant properly?


Hexin .

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: elegant file locked on centos7 server

Post by soliday » 03 Nov 2020, 11:10

What type of file system are you writing to? ext3, ext4, NFS, lustre, gpfs or something else?

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Re: elegant file locked on centos7 server

Post by Hexin » 04 Nov 2020, 06:50

our server file system is lustre.

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: elegant file locked on centos7 server

Post by michael_borland » 04 Nov 2020, 17:21

This can sometimes happen if elegant is run by mistake using mpiexec, since in that case multiple identical instances are run.

--Michael

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Re: elegant file locked on centos7 server

Post by Hexin » 05 Nov 2020, 07:16

I didn't use mpixec, I just ran a simple example. This example is examples / acceptance / energyscan1, which is from your website.

The RPM package of elegant and sddstoolkits installed on my PC can work normally, but file locked (SDDS_InitializeInput) problem will appear when running in our school Supercomputer Center.


The supercomputing center systecms of our school is centos7, and the file system is lustre.

What should I do to be able to use elegant properly on this system?

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: elegant file locked on centos7 server

Post by soliday » 05 Nov 2020, 13:28

Is there run.acc file in that directory? Initially there isn't. So if there is, perhaps it was left behind by a previous test and left locked for some reason. What happens if you delete run.acc and try again?

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Re: elegant file locked on centos7 server

Post by Hexin » 05 Nov 2020, 20:23

If I delete the run.acc,the error information is:
Error:
Unable to access file run.acc--file is locked (SDDS_InitializeOutput)

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: elegant file locked on centos7 server

Post by soliday » 05 Nov 2020, 20:33

I am going to guess that your lustre system is not using the flock mount option:

Code: Select all

$ mount | grep lustre
192.168.2.153@o2ib:/anltest on /lustre type lustre (rw,noauto,flock)
I will create an RPM for you with file locking turned off.

Hexin
Posts: 9
Joined: 15 Nov 2018, 09:53

Re: elegant file locked on centos7 server

Post by Hexin » 05 Nov 2020, 21:05

This is my server information of lustre:
mount | grep lustre
14.31.3.27@o2ib:/home on /home type lustre (rw,lazystatfs)
14.2.11.11@o2ib:/data on /software type lustre (rw,lazystatfs)
14.2.11.11@o2ib:/home on /project type lustre (rw,lazystatfs)
14.2.11.11@o2ib:/datasgg on /dat01 type lustre (rw,lazystatfs)
14.2.12.10@o2ib:/scratch on /scratch type lustre (rw,flock,lazystatfs)

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: elegant file locked on centos7 server

Post by soliday » 05 Nov 2020, 21:06

Uninstall the RPMs you previously installed and then install these:

SDDSToolKit-5.0-1.rhel.7.nolock.x86_64.rpm
elegant-2020.4.0-5.rhel.7.openmpi.nolock.x86_64.rpm

Post Reply