June 21, 20251 yr I think I know some of the issues when I added a previously used 1TB Samsung_870 drive to my UnRaid server.Entrees in the picture 9, S6PTNMOT420498V-part2, 1, 13, 321. These are because the drive was not formatted or wiped prior to adding it. I also tried mounting it and it would not.. . . . I thought I could format it when it was installed.I removed it, but I noticed when it was inserted it gave its name as Docker2. I take it that is how Pool's work. Each added drive becomes incremented by number from the first device in that pool. Here is my goal. Add the Samsung 1TB drive and move everything from the Docker drive to it. THEN, shutdown, and remove the smaller OCZ 128GB drive and add my second 1TB used Samsung_870 drive.I was going to work off of this advice, "stop docker service, stop VM service if it's running. move the data from the docker pool to the cache pool, remove the docker pool and replace that disk with the new disk, move the data back to the docker pool."So do I need to format / wipe the 1TB Samsung drives first? Is my plan above the best way to go about doing this, or create a new pool?
June 21, 20251 yr Community Expert I usualy boot into a live linux distro such as ubuntu mate and run the disk application to select and format a disk before unriad. as that has old data of being a raid memaber adn may have adatial encryption / lvm data on it... Unraid done't have a few pacakges that deb live distro might for afecting disk of that nature.in web ui, You would need to use terminal commands to selec and formt the disk via termainl within unraid...To format a disk to btrfs in the Linux terminal, you'll first need to identify the disk using lsblk, then unmount it if necessary, and finally use mkfs.btrfs to format it. Remember to back up any important data before formatting, as this process will erase all data on the disk. Here's a quick reference step-by-step guide:1. Identify the Disk:Use the lsblk command to list all block devices (hard drives, SSDs, partitions, etc.). Identify the disk you want to format (e.g., /dev/sda, /dev/nvme0n1). Look for the device name and its size to distinguish it from others. Note: If the disk has existing partitions, you'll need to identify the specific partition you want to format (e.g., /dev/sda1). 2. Unmount the Disk (if necessary):If the disk or partition is currently mounted, you'll need to unmount it before formatting. Use the sudo umount /dev/sdXn command, replacing /dev/sdXn with the actual device or partition. 3. Format the Disk to Btrfs:Use the sudo mkfs.btrfs /dev/sdXn command to format the disk or partition to btrfs.Replace /dev/sdXn with the actual device or partition name.The -f flag can be used with mkfs.btrfs to force formatting, even if the device is already in use (but be extremely cautious when using this). Example:Assuming you want to format /dev/sda1 to btrfs: lsblk to identify /dev/sda1sudo umount /dev/sda1 (if it's mounted)sudo mkfs.btrfs /dev/sda1So In Unraid open the web terminal... as it will be a nvme ...REPLACE /dev/nvme0n1 WITH YOUR DEV PATH!!!! THIS IS DESTRUCTIVE!Step 1: Identify the Disk with lsblklsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT-identify the samsung device and its /dev/ path...Step 2: Wipe the Existing Partition Tablewipefs -a /dev/nvme0n1sgdisk --zap-all /dev/nvme0n1Step 3: Create a New GPT Partition Tableparted /dev/nvme0n1 mklabel gptparted -a optimal /dev/nvme0n1 mkpart primary btrfs 0% 100%then double check: lsblkadd to unraid and have unraid format...terminal example5. Format as Btrfsmkfs.btrfs -f -L mypool /dev/nvme0n1p1
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.