February 22, 20206 yr Hi guys, I have a precleared and checked drive which I want to format to xfs while it is not part of the array and copy some data onto it. Can somebody share the proper command and how to partition, etc? I want to copy data onto it, then put into array and re-construct, then re-build parity. I am looking to the same squence of commands that are execute after array is started and a new and unformatted drive is found. Thanks verry much! Edited February 22, 20206 yr by starcat
February 22, 20206 yr Can't you just enable destructive mode in UD's settings and then format it via the plugin?
February 22, 20206 yr Author I am looking but can't find UD and Desctructive Mode? Running 6.2.0-rc3 Thanks for help, appreciated
February 22, 20206 yr 2 minutes ago, starcat said: Running 6.2.0-rc3 Also, highly recommended to upgrade your OS and probably your plugins are all out of date too.
February 22, 20206 yr Author Was looking into settings, doesn't have anything like that. Which version would you recommend?
February 22, 20206 yr 6.8.2 is current But definitely read this thread Although you won't be able to install Fix Common Problems as it's not compatible < 6.7 anymore
February 22, 20206 yr Author That is exactly why I wasn't looking into upgrading as everything I need is running fine. You know, never touch a running system. Only need to parition and format a disk to XFS, then copy data somewhere else, then put back into array, rebuild and calculate new parity. Edited February 22, 20206 yr by starcat
February 22, 20206 yr Why not just put it in the array and format it as XFS? You intend for it to be in the array anyway. Just put it there, format it as XFS, and copy whatever you want to it. No need to get Unassigned Devices or anything else involved.
February 23, 20206 yr Author I wanted to partition and format to unraid specs, mount elsewhere and copy data onto it and THEN bring it into the array. I wanted to transport the data with and copy data to different disk and then copy into the array.
February 24, 20206 yr You can use the cache disk slot to format to XFS as long as you set the cache slots to display only 1 slot. That way it doesn't disturb the parity array and still sets up the drive correctly. If you currently are using a cache drive just disable the VM and Docker services in settings while you do the unassign current cache, assign temp drive, format, unassign, reassign all current cache drives.
February 24, 20206 yr Author That's a great idea with the cache drive. I currently do not use a cache drive, so the cache drive slot is free. So, I insert a new drive there, partition, format, take out and bring elsewhere, copy data onto it and then assign as a regular data drive. Then rebuild parity. Would that work? Thanks.
February 24, 20206 yr 3 minutes ago, starcat said: That's a great idea with the cache drive. I currently do not use a cache drive, so the cache drive slot is free. So, I insert a new drive there, partition, format, take out and bring elsewhere, copy data onto it and then assign as a regular data drive. Then rebuild parity. Would that work? Thanks. Yes. Unraid will partition automatically, and apply whichever format type (XFS or BTRFS) that you have set for that cache slot. XFS is only available if the number of cache slots available is set to exactly 1.
February 24, 20206 yr Author Thanks on that hint, didn't knew. I am running currently 6.2.0-rc3 and I do not see GPT 4k-aligned available as a partition scheme in the Disk Settings. I only see MBR and MBR 4k-aligned and was planning to insert some 8TB drives. Any idea which version do I need to upgrade to without breaking too much of what I currently have and introducing lots of new dependencies? Thanks
April 8, 20206 yr Rather than create a new thread, I thought I'd post here. I'm looking for the same command. I want to format a disk that I have in a different server running Debian and ensure it's formatted to be recogniziable by UnRAID. What is the command?
April 8, 20206 yr Found it... Dumping this here so I can find it in the future.... special thanks to him who will recognize his code. Don't use this unless you know WTF you're doing. This will destory things. Quote # Remove previous partition (if needed) parted {$dev} --script -- rm {$part} # Destory all partition data structures (just be to extra sure) sgdisk -Z {$dev} # Create new UnRAID Partition parted {$dev} --script -- mklabel gpt parted -a optimal {$dev} --script -- mkpart primary xfs 0% 100% # Format XFS mkfs.xfs -f {$dev}
Archived
This topic is now archived and is closed to further replies.