I am using Ubuntu 18.04 and have an md0 raid array of 4x500GB drives, ie. 2TB
I ran this command dd if=/dev/zero of=./swapfile bs=1MiB count=350KiB
Which I expected to create a 350GB file,
However the command is stuck, it has not returned and the file size is not longer growing, has been same for 20 minutes now.
$ ls -lrt
total 311956800
-rw-r--r-- 1 root root 319443763200 Apr 7 17:59 swapfile
$
$ df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 1953017856 262744128 1689747456 14% /mnt/nvme1
What is issue?
ps: I did this
$ strace -p 2318
strace: Process 2318 attached
^C^C^C^C
^C^C^C^C^C
^C^C^C
There was no output, and I could not unattach... CTRL-C does not work.
strace
installed? see what it says.strace -p $(pidof dd)
(or check the PID manually)# strace -p 2318 strace: Process 2318 attached
(there is not other output)read(0,
if the process is blocking on a system call. Anyway, if there is more, you might want to edit it to the question, the formatting in comments isn't very good for printouts like thatdd
process in (seeps -f 2318
)?