Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zielke

Members
  • Joined

  • Last visited

  1. Hi all, first of all - thanks for the plugin, I find it very useful. Donation is on it's way. 👍 I ran into (self caused) trouble with a script that runs every minute. Due to some unforeseen circumstances it started to produce loads of output, which filled up the root file system over three weeks. To prevent this, I added a generic code-block after my script implementation, which rotates the log (in a very simplistic way). As it seems to be working all right, I thought that I might just as well share it. #!/bin/bash # Here goes whatever you script does - replace the echo with your code block echo "Hello world! Given enough time and frequent execution of this dummy script, it will eventually fill the root file-system." # End of your script # ------------------ LOG ROTATION BLOCK ----------------- SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) LOG_FILE="$SCRIPT_DIR/log.txt" # Change the 2000000 in the next line to an appropriate size - 2000000 is roughly 2MB if [ -n "$(find "$LOG_FILE" -prune -size +2000000c)" ]; then echo -e "\n**** Rotating ${LOG_FILE}. *****" echo -e "**** If you are monitoring the log, please re-start monitoring the new log. ****\n\n" mv "$LOG_FILE" "${LOG_FILE}_0" fi # -------------- END OF LOG ROTATION BLOCK -------------- All the best and have a nice weekend Andreas
  2. All bought as new.
  3. I ended preparing nvme0 using the manual steps listed in my first reply. I was then able to create the pool via the GUI.
  4. The extended smart test did not show any errors. The commands specified yielded no result, as in the current state there seems to be no partition on the vnme0n1: root@nas:~# LIBBLKID_DEBUG=all root@nas:~# blkid -p -o udev /dev/nvme0n1p1 > /boot/debug.txt root@nas:~# cat /boot/debug.txt root@nas:~# ls -lsa /dev/nvme0 root@nas:~# ls -lsa /dev/nvme0* 0 crw------- 1 root root 242, 0 May 24 06:53 /dev/nvme0 0 brw-rw---- 1 root disk 259, 1 May 24 06:53 /dev/nvme0n1 root@nas:~#
  5. Moving on: I found out, that the system share contained to .img files which where mounted. Judging by name they belong to Docker and virtual machines. After stopping both options (using the GUI via Settings --> Docker --> Enable Docker --> No and Settings --> VM Manager --> Enable VMs --> No) the IMG files were not mounted any more. I was then able to export the pool. root@nas:~# zpool export storage root@nas:~# ll root@nas:~# zpool list no pools available root@nas:~# blkdiscard -f /dev/nvme0n1 blkdiscard: Operation forced, data will be lost!I then rebootet, as the system did not reflect the changes. After rebooting the pool still showed up in the GUI, but I was able to remove it. I re-created a new pool with six devices and added the devices. This resulted in a pool with five devices; the nvme0 was "Not installed". As all other device were picked up seemingly without the need to format them, I guess that I'll have to re-format the nvme0 after the blkdiscard. I'm currently running a smart test on the device, which takes some time. I'll continue with my trials after that test.
  6. Ok, some further observations and additional info: I have not (yet) been able to figure out a way to get rid of the busy system share, which stops me from exporting the pool. While examining the contents of the system share to get an idea of the potential damage I had a another thought: I fought the GUI for some time, trying to set up a pool that would start up. One of the changes I made during these trials was to change the order of the disks. On my first go I created a pool with six slots and added the two SATA drives as devices in the first two slots and continued with the NVMEs. When trying to format the disks, I ran into the same situation as now. (Judging only by the little information that the GUI provides; I did not consult syslog at this point.) I then removed the pool, started fresh and changed the order of the drives. Is this observation meaningful in any way - or could the error still be due to a potentially problematic NVME?
  7. Jorge, sorry - I have to leave the computer until tomorrow. Many thanks for your help up to this point!
  8. Ok, I tried to export the pool, but this fails when the (still non-existant) array is running. (Error message: cannot unmount '/mnt/storage/system': pool or dataset is busy). When I stop the array, the pool cannot be exported, as it is not available. The share system was auto-generated btw.
  9. Absolutely no problem, here you go: root@nas:~# wipefs /dev/nvme0n1p1 DEVICE OFFSET TYPE UUID LABEL nvme0n1p1 0x4000 zfs_member 2899005060788001305 storage nvme0n1p1 0x44000 zfs_member 2899005060788001305 storage nvme0n1p1 0x3a381644000 zfs_member 2899005060788001305 storage nvme0n1p1 0x3a381684000 zfs_member 2899005060788001305 storage
  10. Hi Jorge, thanks for taking the time to help! Much appreciated. This is the output (after the manual steps I described in my own reply to my first post): root@nas:~# wipefs /dev/nvme0n1 DEVICE OFFSET TYPE UUID LABEL nvme0n1 0x3a381744000 zfs_member 2899005060788001305 storage nvme0n1 0x3a381784000 zfs_member 2899005060788001305 storage nvme0n1 0x200 gpt nvme0n1 0x3a3817d5e00 gpt nvme0n1 0x1fe PMBR Kind regards Andreas
  11. So, I tried a few things, by more or less following the commands listed in the syslog, but changing them at the point that I found strange (see my post above): root@nas:~# /sbin/wipefs -af --lock /dev/nvme0n1 /dev/nvme0n1: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 /dev/nvme0n1: 8 bytes were erased at offset 0x3a3817d5e00 (gpt): 45 46 49 20 50 41 52 54 root@nas:~# sgdisk -Z /dev/nvme0n1 Creating new GPT entries in memory. GPT data structures destroyed! You may now partition the disk using fdisk or other utilities. root@nas:~# sgdisk -o -a 8 -n 1:1M:0 /dev/nvme0n1 Creating new GPT entries in memory. The operation has completed successfully. root@nas:~# /bin/lsblk -lnbo TYPE,PARTN,NAME,START,SIZE,PTTYPE,PARTTYPE /dev/nvme0n1 disk nvme0n1 4000787030016 gpt part 1 nvme0n1p1 2048 4000785964544 gpt 0fc63daf-8483-4772-8e79-3d69d8477de4 root@nas:~# udevadm settle root@nas:~# /sbin/wipefs -af --lock /dev/nvme0n1p1 root@nas:~# /sbin/blkdiscard /dev/nvme0n1p1 Now follows the major change - I replaced the very strange /dev/ with the first partition on the first nvme: /dev/nvme0n1p1 root@nas:~# zpool create -f -o ashift=12 -O dnodesize=auto -O acltype=posixacl -O xattr=sa -O utf8only=on -m /mnt/storage storage raidz1 /dev/nvme0n1p1 /dev/nvme1n1p1 /dev/nvme2n1p1 /dev/nvme3n1p1 /dev/sdb1 /dev/sdc1 root@nas:~# zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT storage 21.8T 864K 21.8T - - 0% 0% 1.00x ONLINE - root@nas:~# ls /mnt/storage/ appdata/ domains/ isos/ system/ root@nas:~# df -h /mnt/storage/ Filesystem Size Used Avail Use% Mounted on storage 18T 256K 18T 1% /mnt/storage So now I seem to have a pool with about the expected size (6*4T using raidz1 should be something like 20T). The dashboard displayed the storage immedeately - but strange enough the web gui pages "Main" and "Shares" did not pick this up - only after rebooting the pool created by hand appeared. (This could be a simple cosmetic problem.) Apparently the commands that the GUI generated where wrong, enforcing the very flaky first impression. Other problems that had to be fixed by hand were a very uninformative Error message that the registration of the 30-day trial failed after copying the downloaded key file to the correct position an error message that internet access was not available, even though pings to google and other major sites worked as well as nslookups So the first impression of Unraid leaves much to be desired.
  12. Hi *, first of all - I'm an absolute newbie to unraid. I'ver recently purchased a small SSD only NAS (SyncStation N2). Now I'm in the process of setting up Unraid, which has been a bit of a mixed bag. The system is set up with four 4TB nvme and two SATA 4TB SSDs (all new WD devices). After registering for an initial 30 day trial period and updating to 7.1.2, I tried to set up the six disks as a ZFS pool. (I will not extend the system with further disks and see no advantage in using an array.) I'm roughly following the steps outlined in this Uncast Show: https://www.youtube.com/watch?v=z3oLhXEts-4&t=152s I set the number of slots for the array to 0. I created a pool with six slots and assigned all disks to the slots (beginning with the NVMEs /dev/nvme0n1 through to /dev/nvme3n1 followed by the two SATA drives /dev/sdb and /dev/sdc). Then I set up the first device to utilize ZFS with raidz1 and configured one vdev with six devices. After that I started the (non-existent) array and tried to format the pool devices. This fails reproducably. The error message in the GUI is that the disk is unmountable with wrong or no file system. The relevant portion (as far as I can see) from the syslog is as follows - I find the attemp to use wipefs on /dev/ strange: May 23 15:35:19 nas emhttpd: creating volume: storage (zfs) May 23 15:35:19 nas emhttpd: shcmd (2179): /sbin/wipefs -af --lock /dev/nvme0n1 May 23 15:35:19 nas root: /dev/nvme0n1: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54 May 23 15:35:19 nas root: /dev/nvme0n1: 8 bytes were erased at offset 0x3a3817d5e00 (gpt): 45 46 49 20 50 41 52 54 May 23 15:35:19 nas root: /dev/nvme0n1: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa May 23 15:35:19 nas emhttpd: writing GPT on disk (nvme0n1), with partition 1 byte offset 1MiB, erased: 0 May 23 15:35:19 nas emhttpd: shcmd (2180): sgdisk -Z /dev/nvme0n1 May 23 15:35:20 nas root: Creating new GPT entries in memory. May 23 15:35:20 nas root: GPT data structures destroyed! You may now partition the disk using fdisk or May 23 15:35:20 nas root: other utilities. May 23 15:35:20 nas emhttpd: shcmd (2181): sgdisk -o -a 8 -n 1:1M:0 /dev/nvme0n1 May 23 15:35:21 nas kernel: nvme0n1: p1 May 23 15:35:21 nas root: Creating new GPT entries in memory. May 23 15:35:21 nas root: The operation has completed successfully. May 23 15:35:21 nas emhttpd: shcmd (2182): udevadm settle May 23 15:35:21 nas emhttpd: /bin/lsblk -lnbo TYPE,PARTN,NAME,START,SIZE,PTTYPE,PARTTYPE /dev/nvme0n1 2>&1 May 23 15:35:21 nas emhttpd: disk nvme0n1 4000787030016 gpt May 23 15:35:21 nas emhttpd: part nvme0n1p1 2048 4000785964544 gpt May 23 15:35:21 nas emhttpd: device nvme0n1: no partitions May 23 15:35:21 nas emhttpd: shcmd (2183): /sbin/wipefs -af --lock /dev/ May 23 15:35:21 nas root: wipefs: error: /dev/: probing initialization failed: Is a directory May 23 15:35:21 nas emhttpd: shcmd (2183): exit status: 1 May 23 15:35:21 nas emhttpd: shcmd (2184): /sbin/blkdiscard /dev/ May 23 15:35:21 nas root: blkdiscard: cannot open /dev/: Is a directory May 23 15:35:21 nas emhttpd: shcmd (2184): exit status: 1 May 23 15:35:21 nas emhttpd: shcmd (2185): /sbin/wipefs -af --lock /dev/nvme1n1p1 May 23 15:35:21 nas emhttpd: shcmd (2186): /sbin/blkdiscard /dev/nvme1n1p1 May 23 15:35:22 nas emhttpd: shcmd (2187): /sbin/wipefs -af --lock /dev/nvme2n1p1 May 23 15:35:22 nas emhttpd: shcmd (2188): /sbin/blkdiscard /dev/nvme2n1p1 May 23 15:35:22 nas emhttpd: shcmd (2189): /sbin/wipefs -af --lock /dev/nvme3n1p1 May 23 15:35:22 nas emhttpd: shcmd (2190): /sbin/blkdiscard /dev/nvme3n1p1 May 23 15:35:23 nas emhttpd: shcmd (2191): /sbin/wipefs -af --lock /dev/sdb1 May 23 15:35:23 nas emhttpd: shcmd (2192): /sbin/blkdiscard /dev/sdb1Now I'm stuck and would be happy to receive any hints about how to continue. I'm also including the diagnostics. Kind regards Andreas nas-diagnostics-20250523-1601.zip

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.