starcat Posted February 22, 2020 Share Posted February 22, 2020 (edited) 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, 2020 by starcat Quote Link to comment
Squid Posted February 22, 2020 Share Posted February 22, 2020 Can't you just enable destructive mode in UD's settings and then format it via the plugin? Quote Link to comment
starcat Posted February 22, 2020 Author Share Posted February 22, 2020 I am looking but can't find UD and Desctructive Mode? Running 6.2.0-rc3 Thanks for help, appreciated Quote Link to comment
Squid Posted February 22, 2020 Share Posted February 22, 2020 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. Quote Link to comment
starcat Posted February 22, 2020 Author Share Posted February 22, 2020 Was looking into settings, doesn't have anything like that. Which version would you recommend? Quote Link to comment
Squid Posted February 22, 2020 Share Posted February 22, 2020 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 1 Quote Link to comment
starcat Posted February 22, 2020 Author Share Posted February 22, 2020 (edited) 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, 2020 by starcat Quote Link to comment
trurl Posted February 22, 2020 Share Posted February 22, 2020 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. Quote Link to comment
starcat Posted February 23, 2020 Author Share Posted February 23, 2020 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. Quote Link to comment
JonathanM Posted February 24, 2020 Share Posted February 24, 2020 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. 1 Quote Link to comment
starcat Posted February 24, 2020 Author Share Posted February 24, 2020 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. Quote Link to comment
JonathanM Posted February 24, 2020 Share Posted February 24, 2020 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. 1 Quote Link to comment
starcat Posted February 24, 2020 Author Share Posted February 24, 2020 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 Quote Link to comment
Lev Posted April 8, 2020 Share Posted April 8, 2020 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? Quote Link to comment
Lev Posted April 8, 2020 Share Posted April 8, 2020 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} Quote Link to comment
Recommended Posts
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.