Cold start FAILED ASSERTION (drv_ssd): (drv_ssd.c:3323) unable to truncate file: errno 22

Hello, I have a fresh installation on the clean disk which parted

nvme0n1      259:0    0 894.3G  0 disk 
├─nvme0n1p1  259:1    0   200G  0 part 
├─nvme0n1p2  259:2    0   200G  0 part 
├─nvme0n1p3  259:3    0   200G  0 part 
├─nvme0n1p4  259:4    0   200G  0 part 

When I run /usr/bin/asd --cold-start --config-file /etc/aerospike/aerospike.conf --fgdaemon I’v got the error message FAILED ASSERTION (drv_ssd): (drv_ssd.c:3323) unable to truncate file: errno 22

Could someone prompt me, please, what I am doing wrong?

Aerospike Community Edition build 4.7.0.2 os ubuntu18.04

My config

service {
  user root
  group root
  migrate-threads 2
  paxos-single-replica-limit 1
  pidfile /var/run/aerospike/asd.pid
  proto-fd-max 30000
}

logging {
  console {
    context any info
  }
}

# network context definition
network {
  service {
    address any
    port 3000
  }

  fabric {
    address eth1
    port 3001
  }

  info {
    address eth1
    port 3003
  }

  heartbeat {
    address eth1
    interval 150
    mesh-seed-address-port ah-ams-dsp-as-1 3002
    mesh-seed-address-port ah-ams-dsp-as-2 3002
    mesh-seed-address-port ah-ams-dsp-as-3 3002
    mesh-seed-address-port ah-ams-dsp-as-4 3002
    mode mesh
    port 3002
    timeout 10
  }
}

namespace sss {
  default-ttl 1d
  high-water-disk-pct 85
  high-water-memory-pct 85
  memory-size 59099440K
  replication-factor 1
  stop-writes-pct 90
  storage-engine device {
    data-in-memory false
    defrag-lwm-pct 50
    file /dev/nvme0n1p1
    file /dev/nvme0n1p2
    file /dev/nvme0n1p3
    file /dev/nvme0n1p4
    filesize 10G
    max-write-cache 128M
    write-block-size 128K
  }
}

Thank in advance

Change file to device, file is for files on a filesystem.

Thank you! I should be more attentive :slight_smile:

Not a problem, our error could have been less opaque.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.