Hi Jan,

Are you looking to make raw block devices assessable to jobs or a file system?

The term "running on"  can mean different things-- it could be where the 
application binary lives, or where input and or output files live, or maybe 
some other things too. I'll figure you're looking to provide scratch space on 
the node by means of a filesystem. 

If you'd like to hand out filesystem access let's say each disk is mounted at 
/local_disk/sata and /local_disk/sas, respectively, you could define the GRES 
as:

Name=local_disk Type=sata Count=3800G
Name=local_disk Type=sas Count=580G

(You'll probably want to adjust the value of Count depending on what size the 
drives format out to). 

You could then write some prolog magic to actually allocate that space on the 
nodes (if you're sharing nodes between jobs) via quotas (or maybe something 
more fancy if you have say ZFS or btrfs) and creates a job-specific directory 
under the mount point.  In addition you could set an environment variable via 
the prolog that points to the path for the storage so users can reference it in 
their jobs regardless of disk type. A single SLURM_LOCAL_DISK variable might do 
the job. The last piece is an epilog job to delete the job-specific directory 
and unset any quotas along with a cron job to periodically check that the 
directories and quotas have been cleaned up on each node in case there's an 
issue with the SLURM epilog (e.g. A nodes reboots during the job)

I hope that helps and isn't overwhelming. If you have questions about any of 
the parts I'm happy to explain more. 

Best,
Aaron


Sent from my iPhone

> On Jun 12, 2015, at 8:18 AM, Jan Schulze <[email protected]> wrote:
> 
> 
> Dear all,
> 
> this is slurm 14.11.6 on a ROCKS 6.2 cluster. 
> 
> We'are currently planing to build a cluster out of computing nodes each 
> having one SAS(600GB) and one SATA(4TB) hard drive. Is there a way that one 
> can configure the nodes such that the user can specify on which kind of disk 
> the job is supposed to run? So in the gres.conf file something like 
> 
>    Name=storage Type=SATA File=/dev/sda1 Count=4000G
>    Name=fast Type=SAS File=/dev/sdb1 Count=600G
> 
> ?
> 
> 
> Thanks in advance.
> 
> 
> greetings
> 
> Jan Schulze=

Reply via email to