LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2023, 11:41 AM   #1
rolgiati
LQ Newbie
 
Registered: Dec 2014
Posts: 20

Rep: Reputation: Disabled
Resizing Raid-1 partitions.


After several years of using my PCLinuxOS/XFCE install, I find that the partitions sizes I settled on are not optimal: /var is too big, and /usr too small, probably because of all the progs I have been adding over the years.
Luckily the /var and /usr partitions are contiguous, which should simplify the process.

My idea is to boot a gparted live-cd/usb, shrink and move /var up, and expand /usr.

Since the partitions UUIDs remain untouched, mdadm.conf would remain unchanged.

Have I missed something ?
 
Old 02-05-2023, 04:35 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Seems like you have it, but first use Clonezilla or other tool to make a backup of the entire disk so you can restore if things do go wrong.
I have not done resizing on a system with RIAD, so I may be missing something.
 
Old 02-05-2023, 05:00 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I would suggest read very carefully the supported features for gparted. It's a very good tool, but not (yet) magic.

You need to be cognisant of the separation of the filesystem from mdadm - they need to be managed separately and in the correct order. Especially when shrinking.
There are ways to do things as you describe, but you need the "magic" in place first - say btrfs/zfs or LVM RAID. For a "normal" mdadm setup, you have to do all the legwork correctly - quick search found this for example.
 
Old 02-06-2023, 04:00 AM   #4
rolgiati
LQ Newbie
 
Registered: Dec 2014
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
I always presume you have a verified B-A-C-K-U-P before taking any advice given.
Thank you for the kind advice.

Before making any change on one of the RAID HDs, I plan to clone it, so that if it comes to the worst, I can swap the un-modified clone to restore my system.
 
  


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
resizing PV does not work (lvm) after resizing partition deadeyes Red Hat 5 03-11-2011 11:19 AM
LXer: Resizing Linux partitions, Part 2: Advanced resizing LXer Syndicated Linux News 0 09-02-2010 04:41 AM
[SOLVED] Resizing window content when resizing window? (Debian squeeze) mike11 Linux - Newbie 2 03-04-2010 02:14 AM
Resizing raid partitions on Centos 5.2 server Akulaari Linux - General 3 10-20-2009 01:33 AM
Partitions, partitions, partitions..... Clueless in VA Linux - Newbie 7 08-08-2001 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 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