Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated new drive formatting, mounting and updating chia/plot_manger configs #38

Closed
rjsears opened this issue May 14, 2021 · 4 comments
Assignees

Comments

@rjsears
Copy link
Owner

rjsears commented May 14, 2021

Code that will identify when a new drive is added to the system detecting that it is not mounted not has any partitions on it, will partition it, format it xfs, mount it, enter the required entries in /etc/fstab and update plot_manager and chia with the new mount point information.

@maxbelz
Copy link

maxbelz commented May 15, 2021

hi, im going to use your software. thank you for this... i see this post and have a question, how can i format it to ext4? why you choose xfs vs ext4? looks like just because you are using freenas... i'd prefer ext4 cause im using directly attached hdd's (through sas expander + lsi hba controller) to my ubuntu server (which is plotter aswell). also wainting for support of multiply plotters , i have 4 plotter machines one of them is farmer aswell as plotter.

@rjsears rjsears reopened this May 17, 2021
@rjsears
Copy link
Owner Author

rjsears commented May 17, 2021

It can easily be changed to utilize ext4. I use FreeNAS/TrueNAS but NOT on my NAS units, these are simply basic JBODs. I utilize XFS for everything associated with my Chia and ZFS for everything TrueNAS associated. I would highly recommend reading up on XFS vs ext4 before making any decisions, but frankly, either should be fine, I simply choose XFS over anything else these days unless ZFS makes sense, then I use that.....

In order for you utilize ext4 vs xfs, you would simply need to change line 215:

mkfs_results = subprocess.run(['mkfs.xfs', '-q', '-f', drive], capture_output=True, text=True)

to:

mkfs_results = subprocess.run(['mkfs.ext4', '-q', '-f', drive], capture_output=True, text=True)

and line 219 to this:

print(f'Process (mkfs.ext4) {green}COMPLETE{nc}!')

@maxbelz
Copy link

maxbelz commented May 18, 2021

thank you!

@rjsears
Copy link
Owner Author

rjsears commented May 19, 2021

You bet, hope it works for you!

@rjsears rjsears closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants