LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-09-2020, 03:44 PM   #1
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,156

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Path to switch server to ssd from hard drive.


My current setup is a 1tb Western Digital datacenter drive. This drive has LVM with a 500gb partition that is dedicated to my mythtv backend. I have a 250gb partition that is my current root partition.

I'm fairly certain I know how to shrink the partition, that shouldn't be an issue. My goal is to shrink root down to 95gb (currently it's only at 47gb used. Move it to a 120gb ssd which will also hold a 2gb swap. Then remove the existing volume from the 1tb drive, and ultimately rework the 1tb drive to be a single big volume which will be both mythtv target, and /home for my lan.

That is where it get's fuzzy for me. I'm unsure of the exact process to move the volume to the new drive, and then remove the existing drive from the volume with as little downtime as possible. Once it's freed up I can recreate a new volume on it easy enough. I can kill the mythtv process as needed so I'm not worried about that. But I don't want to bring my nfs shares down (host) any more than required.

To further make it fun I'm debating picking up another 120gb ssd and putting them in raid 1 for redundancy. But I'm guessing that is just a matter of pointing at the raid device instead of the actual device itself.

I know another possibility is to just do a debootstrap install on the new mountpoint and go from there with making sure all configs and such are copied. In theory last step updating grub then rebooting, it should load from the new ssd / raid1? and the 250g partition would be free to eliminate. Just not sure what would be the best approach. Ubuntu 18.04. I do know that since the majority of my services are in lxd containers I can just move them to another machine for temporary holding, then move them back after a reboot.

Any suggestions on how to approach.

Last edited by jmgibson1981; 05-09-2020 at 03:46 PM.
 
Old 05-10-2020, 11:35 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,107

Rep: Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367Reputation: 7367
you cannot make it on a running/living system.
so you need to make room on your ssd, reboot into a live cd or another OS, shrink/copy (with dd for example) the root partition into ssd and boot it.
 
Old 05-11-2020, 02:56 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
There are solutions that takes a physical and live state converts it to a VM. Then convert back to physical or just leave in a VM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] using switch in a function to call another function with a switch but it is not going into 2 switch ... BW-userx Programming 2 08-20-2017 11:47 PM
[SOLVED] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
Minimum downtime way to switch server data from bad hard drive to new hard drive? postcd Linux - Hardware 1 05-18-2014 11:27 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration