-
pixeldoc81: Boot device has been blacklisted after update from 7.4.0 to 7.4.1
Can you please elaborate? Tcpdump in docker is not going to cut it, because I need to capture traffic at the host level for troubleshooting.
-
pixeldoc81: Boot device has been blacklisted after update from 7.4.0 to 7.4.1
The issue with GUID is cause by installing one of the dependencies for the current bluez package from slackware-current. Bluetooth / bluez Packages-rw------- 1 root root 2266160 Nov 6 23:38 bluez-5.88-i686-1.txz -rw------- 1 root root 677268 Sep 3 00:38 alsa-lib-1.2.16.1-i686-2.txz -rw------- 1 root root 553112 Nov 13 23:12 dbus-1.16.4-i686-1.txz -rw------- 1 root root 1931568 Nov 26 10:27 eudev-3.3.0-i686-3.txz -rw------- 1 root root 4276412 Nov 25 23:06 glib2-2.90.2-i686-1.txz -rw------- 1 root root 1490336 Sep 2 23:59 ncurses-6.6-i686-2.txz -rw------- 1 root root 1274432 Sep 28 23:43 pcre2-10.49-i686-1.txz -rw------- 1 root root 430704 Sep 17 23:51 readline-8.3.006-i686-1.txzBluetooth dependencies# ldd /usr/bin/bluetoothctl linux-gate.so.1 (0x2a9be000) libglib-2.0.so.0 => not found libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x2a93f000) libreadline.so.8 => not found libncursesw.so.6 => not found libtinfo.so.6 => not found libc.so.6 => /lib/libc.so.6 (0x2a6ed000) /lib/ld-linux.so.2 (0x2a9c0000)
-
pixeldoc81: Boot device has been blacklisted after update from 7.4.0 to 7.4.1
Hm, maybe i found the reason for my issues. To install tcpdump , btop , bluez and powertop i have downloaded a bunch of slackware-current packages and required lib packages. Some combination of these packages seem to mess up the GUID detection by emhttpd (UNRAID Webinterface / System). Probably replacing libs required by the system and messing things up. If i disable the installation of the packages (remove them from /boot/extra` ) everything seems to be fine and emhttpd detects the correct GUID and license is working. I just want my f*cking tcpdump for troubleshooting. This is PITA! Lets hope UNRAID 8 will improve the package situation with relying on Fedora uCore instead of slackware.
-
pixeldoc81: Boot device has been blacklisted after update from 7.4.0 to 7.4.1
Hm, maybe there is some issue about USB Flash GUID. I've updated from 7.3.4 to 7.3.6. Array shut down after reboot. Syslog messages: Nov 27 01:55:41 hostname emhttpd: Plus key detected, GUID: 0781-5571-6510-06112213xxxx FILE: /boot/config/Plus.key ... Nov 27 01:55:51 hostname emhttpd: /sbin/blkid /dev/sda1 2>&1 Nov 27 01:55:51 hostname emhttpd: /dev/sda1: LABEL_FATBOOT="UNRAID" LABEL="UNRAID" UUID="2732-64F5" BLOCK_SIZE="512" TYPE="vfat" ... Nov 27 01:55:52 hostname emhttpd: Unregistered Flash device blacklisted (EBLACKLISTED2)Updated from 7.3.4 to 7.4.1 , same issue. I can check my flash GUID with my script just fine: https://gist.github.com/pixeldoc2000/cd378782dfd2d4693d4a0fa3cb5206b7 root@hostname:/mnt/user/username/bin# ./unraid-get-usb-guid.sh /dev/sda VID=0781 PID=5571 Serial (Full)=030265100611221xxxx Serial (Last16)=65100611221xxxx Formula: VID + PID + Last16(Serial) Unraid Combined GUID: 0781-5571-6510-0611221xxxxSo this checks out with my license file and GUID of the running flash. GUIFix license. Manage Server shows GUID all Zeros. -> We couldn't determine the right action for this server. Message: Boot device has no serial number This boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement device, and you are currently booted from your old device. A device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers.My current FixShutdown Rename /boot/config/Plus.key to /boot/config/Plus.key.bak on Flash Downgrade by moving files from /previous version to root Start Restore License from Unraid Portal This seems to stick at least for now Weird: diff /boot/config/Plus.key/ boot/config/Plus.key.bak -> file content is the same. Only differents, License Key is installed after boot. Looks like GUID Check in emhttpd in not working in 7.3.6 and 7.4.1 at least with certain hardware / systems?
-
-
Some Musings on SMB and Samba and Unraid and Windows
Well, you are right, not best practice, that's for shure! I've added a note about unsafe settings and link MS article.
-
Some Musings on SMB and Samba and Unraid and Windows
IPv6 vs IPv4 / Hostname vs. IP for UNC SMB accessIf you try to access your Unraid Server via UNC path with hostname: \\tower Windows will ether use IPv4 or IPv6, depending on availability and configuration on Client and Server. Try to use IPv4 address in UNC path instead to avoid IPv6 issue: \\192.168.0.5 Guest Access via SMB from Windows to Unraid / SambaWARNING: These settings are considered unsave ! https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-signing Disable Windows SMB signing required for SMBSet-SmbClientConfiguration -RequireSecuritySignature $false -ForceAllow Windows Guest Logon via SMBSet-SmbClientConfiguration -EnableInsecureGuestLogons $true -ForceNote: Username on Windows and Unraid needs to be different for this to work out of the box.
-
[Plugin] CA Fix Common Problems
FYI, link to source code: NEW: https://github.com/unraid/fix.common.problems/ OLD: https://github.com/Squidly271/fix.common.problems/
-
nginx running out of shared memory
The issue does still happen on UNRAID 7.0.1 nchan stats https://tower.local/nchan_stub_status total published messages: 8639286 stored messages: 0 shared memory used: 130308K shared memory limit: 131072K channels: 0 subscribers: 0 redis pending commands: 0 redis connected servers: 0 redis unhealthy upstreams: 0 total redis commands sent: 0 total interprocess alerts received: 0 interprocess alerts in transit: 0 interprocess queued alerts: 0 total interprocess send delay: 0 total interprocess receive delay: 0 nchan version: 1.3.7 syslog Apr 24 16:17:47 tower nginx: 2025/04/24 16:17:47 [error] 4015853#4015853: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory. Apr 24 16:17:47 tower nginx: 2025/04/24 16:17:47 [error] 4015853#4015853: *10106188 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost" Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [crit] 4015853#4015853: ngx_slab_alloc() failed: no memory Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [error] 4015853#4015853: shpool alloc failed Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [error] 4015853#4015853: nchan: Out of shared memory while allocating channel /cpuload. Increase nchan_max_reserved_memory. Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [error] 4015853#4015853: *10106193 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/cpuload?buffer_length=1 HTTP/1.1", host: "localhost" Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [crit] 4015853#4015853: ngx_slab_alloc() failed: no memory Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [error] 4015853#4015853: shpool alloc failed Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [error] 4015853#4015853: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory. Apr 24 16:17:48 tower nginx: 2025/04/24 16:17:48 [error] 4015853#4015853: *10106194 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost"
-
nginx running out of shared memory
total published messages: 2681425 stored messages: 0 shared memory used: 130308K shared memory limit: 131072K channels: 0 subscribers: 0 redis pending commands: 0 redis connected servers: 0 redis unhealthy upstreams: 0 total redis commands sent: 0 total interprocess alerts received: 0 interprocess alerts in transit: 0 interprocess queued alerts: 0 total interprocess send delay: 0 total interprocess receive delay: 0 nchan version: 1.3.7 syslog: Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /cpuload. Increase nchan_max_reserved_memory. Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: *3131170 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/cpuload?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory. Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: *3131171 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /devs. Increase nchan_max_reserved_memory. Feb 17 23:21:18 server nginx: 2025/02/17 23:21:18 [error] 3495097#3495097: *3131172 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/devs?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /cpuload. Increase nchan_max_reserved_memory. Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [error] 3495097#3495097: *3131173 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/cpuload?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory. Feb 17 23:21:19 server nginx: 2025/02/17 23:21:19 [error] 3495097#3495097: *3131178 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /cpuload. Increase nchan_max_reserved_memory. Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [error] 3495097#3495097: *3131179 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/cpuload?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory. Feb 17 23:21:20 server nginx: 2025/02/17 23:21:20 [error] 3495097#3495097: *3131180 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /cpuload. Increase nchan_max_reserved_memory. Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [error] 3495097#3495097: *3131181 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/cpuload?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /disks. Increase nchan_max_reserved_memory. Feb 17 23:21:21 server nginx: 2025/02/17 23:21:21 [error] 3495097#3495097: *3131182 nchan: error publishing message (HTTP status code 507), client: unix:, server: , request: "POST /pub/disks?buffer_length=1 HTTP/1.1", host: "localhost" Feb 17 23:21:22 server nginx: 2025/02/17 23:21:22 [crit] 3495097#3495097: ngx_slab_alloc() failed: no memory Feb 17 23:21:22 server nginx: 2025/02/17 23:21:22 [error] 3495097#3495097: shpool alloc failed Feb 17 23:21:22 server nginx: 2025/02/17 23:21:22 [error] 3495097#3495097: nchan: Out of shared memory while allocating channel /cpuload. Increase nchan_max_reserved_memory. dmesg: [Mon Feb 17 23:20:06 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:20:06 2025] nginx[3495093]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 10 (core 2, socket 0) [Mon Feb 17 23:20:06 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:21:06 2025] nginx[3495097]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 1 (core 1, socket 0) [Mon Feb 17 23:21:06 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:21:07 2025] nginx[3496422]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 3 (core 3, socket 0) [Mon Feb 17 23:21:07 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:22:07 2025] nginx[3496423]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 1 (core 1, socket 0) [Mon Feb 17 23:22:07 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:22:08 2025] nginx[3497690]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 9 (core 1, socket 0) [Mon Feb 17 23:22:08 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:23:07 2025] nginx[3497742]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 11 (core 3, socket 0) [Mon Feb 17 23:23:07 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:23:08 2025] nginx[3498986]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 3 (core 3, socket 0) [Mon Feb 17 23:23:08 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:24:07 2025] nginx[3499049]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 9 (core 1, socket 0) [Mon Feb 17 23:24:07 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:24:10 2025] nginx[3500248]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 11 (core 3, socket 0) [Mon Feb 17 23:24:10 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:25:20 2025] nginx[3500304]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 8 (core 0, socket 0) [Mon Feb 17 23:25:20 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:25:20 2025] nginx[3502195]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 11 (core 3, socket 0) [Mon Feb 17 23:25:20 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:25:22 2025] nginx[3502196]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 10 (core 2, socket 0) [Mon Feb 17 23:25:22 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [Mon Feb 17 23:25:22 2025] nginx[3502201]: segfault at 0 ip 0000000000000000 sp 00007ffdb7dbe498 error 14 in nginx[400000+24000] likely on CPU 2 (core 2, socket 0) [Mon Feb 17 23:25:22 2025] Code: Unable to access opcode bytes at 0xffffffffffffffd6. Unraid 7.0.0 with latest Patch (also happend on Unraid 6.11.x - 6.12.x) VM1 Firefox on Windows Tab: https://tower.local/VMs/UpdateVM?uuid=83303fef-9e86-cdb9-6382-2d241f21adb3 Running for some days i guess PC Firefox on Windows Tab: https://tower.local/Docker Running for some days with hibernation inbetween
-
[GUIDE] Optimizing Windows VMs in unRaid
@jademonkee Yes, as long as you do not configure CPU Isolation (Settings > CPU Pinning), the Cores can / will be used by all processes & docker. Otherwise, configure CPU Isolation for some Cores (Beware of HT Pairs) and use them exclusively for vm / docker whatever. AFAIK Core 1&2 will always be used by UNRAID itself.
-
[GUIDE] Optimizing Windows VMs in unRaid
@jademonkee On UNRAID 7 a lot of the Stuff described here can be changed via the GUI. Editing the XML should not be necessary.
-
SWAG fail2ban banning but still able to access resource
I believe I hit the same Problem. Check you fail2ban.log for any iptables Errors. iptables error in `fail2ban.log`: 2025-01-09 21:23:55,807 149A58AACB38 ERROR 149a5a398030 -- exec: { iptables -w -C f2b-vaultwarden-auth -j RETURN >/dev/null 2>&1; } || { iptables -w -N f2b-vaultwarden-auth || true; iptables -w -A f2b-vaultwarden-auth -j RETURN; } for proto in $(echo 'tcp' | sed 's/,/ /g'); do { iptables -w -C DOCKER-USER -p $proto -m multiport --dports http,https -j f2b-vaultwarden-auth >/dev/null 2>&1; } || { iptables -w -I DOCKER-USER -p $proto -m multiport --dports http,https -j f2b-vaultwarden-auth; } done 2025-01-09 21:23:55,807 149A58AACB38 ERROR 149a5a398030 -- stderr: 'iptables: No chain/target/match by that name.' 2025-01-09 21:23:55,807 149A58AACB38 ERROR 149a5a398030 -- returned 1 2025-01-09 21:23:55,808 149A58AACB38 ERROR Failed to execute ban jail 'vaultwarden-auth' action 'iptables-multiport' info 'ActionInfo({'ip': '111.222.333.444', 'family': 'inet4', 'fid': <function Actions.ActionInfo.<lambda> at 0x149a5ab85800>, 'raw-ticket': <function Actions.ActionInfo.<lambda> at 0x149a5ab85f80>})': Error starting action Jail('vaultwarden-auth')/iptables-multiport: 'Script error' The Problem is, the linuxserver.io docker 1.1.0 container has `iptables v1.8.10 (nf_tables)` and UNRAID 6.12.14 has `iptables v1.8.9 (legacy)`. So the container is using an other iptables modules as UNRAID as the docker host. One can check this by running `iptables --version` and the docker host and in the fail2ban container. The solution is to change the banaction to use iptables-legacy. Example: [DEFAULT] banaction = iptables-multiport[iptables=iptables-legacy] Then the iptables rule should be added correctly in iptables on the UNRAID docker host and the blocking should work. root@unraid:~# iptables -L -n ... Chain DOCKER-USER (1 references) target prot opt source destination f2b-vaultwarden-auth 6 -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443 RETURN 0 -- 0.0.0.0/0 0.0.0.0/0 ... Chain f2b-vaultwarden-auth (1 references) target prot opt source destination REJECT 0 -- 111.222.333.444 0.0.0.0/0 reject-with icmp-port-unreachable RETURN 0 -- 0.0.0.0/0 0.0.0.0/0
-
ProFTPD Plugin for unRAID v6.8.x
I am using pure-ftpd on Docker (Community Store App) as a Replacement. Works ok for me. I using it for my IP-Cameras to store the recorded Files via FTP on my Server.
-
[Plugin] Swapfile for 6.9.1
You are right, this is a single disk mounted with unassigned devices plugin. Using a single disk pool did not cross my mind. I will give it a try. IMHO better error handling would be great. Is the swapfile plugin source on github to maybe contribute a pr?
-
[Plugin] Swapfile for 6.9.1
I've encountered a issue. The swap file location was configured to: `/mnt/disks/ssd1`, but automount for the disk was not enabled, so the filesystem was not mounted. The script will try to create the swap file in `/mnt/`filesystem, where is not enough disk space. The script `/usr/local/emhttp/plugins/swapfile/scripts/rc.swapfile` has no error check for `dd` command creating the swap file and thus did not detect any error: # Create swap file logit "Creating swap file ${SWAP_LOCATION}/${SWAP_FILENAME} please wait ..." dd if=/dev/zero of=${SWAP_LOCATION_NEW}/${SWAP_FILENAME_NEW} bs=1M count=${SWAP_SIZE_MB_NEW} Maybe we should check if target filesystem has enough free space before creating the swap file to avoid this issue? At least the script should check if `dd` command was successfull and or should check if swap file does have the desired size?