LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-01-2006, 03:42 AM   #1
simonb1975uk
Member
 
Registered: Jan 2004
Location: In the county of Essex, UK
Posts: 72

Rep: Reputation: 15
Shrinking RAID 1 partion on 2nd disk


Good day to you all, I'm in need of some advice. In my Dell I currently have two 120Gb SATA Hard drives. On one I have a partition dedicated to Windows XP and another partition on my first disk and my second dedicated to a RAID 1 Slackware 11 Linux installation. Foolishly however I made the whole of the partition on my second disk a RAID partition before my brain kicked into gear and realised that when I ran mkraid it would only use the same amount of space on the second drive as was left on the first. So therefore I'm left with approx 40gb of space on the second drive that I can't use.

So my question is can I sucessfully shrink (without having to format and start again) the partition on the second disk using, say 'qtparted' to match the partition on the first disk?

Hope that all makes sense,
Simon
 
Old 12-01-2006, 07:53 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Yes, split the RAID1 array by marking the drive you want to redo as failed, and hot-remove it:

/sbin/mdadm /dev/mdx --fail /dev/hdxn --remove /dev/hdxn

Redo the partitioning and then re-add it to the array:

/sbin/mdadm /dev/mdx --add /dev/hdxn
 
Old 12-01-2006, 10:02 AM   #3
simonb1975uk
Member
 
Registered: Jan 2004
Location: In the county of Essex, UK
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by macemoneta
Yes, split the RAID1 array by marking the drive you want to redo as failed, and hot-remove it:

/sbin/mdadm /dev/mdx --fail /dev/hdxn --remove /dev/hdxn

Redo the partitioning and then re-add it to the array:

/sbin/mdadm /dev/mdx --add /dev/hdxn
Thanks for the advice macemoneta I'll try that when I get home tonight. I just bought a shiny new ATI PowerColor X1950 pro so looking forward to see how that performs as well

Simon
 
Old 12-04-2006, 06:58 AM   #4
simonb1975uk
Member
 
Registered: Jan 2004
Location: In the county of Essex, UK
Posts: 72

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks macemoneta that worked like a charm.

Simon
 
  


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
dual partion install VIA raid help gfem Fedora 3 12-28-2005 11:26 PM
Cannot partion linux disk chuchaz Linux - Software 3 06-15-2005 09:14 AM
how do i build soft raid 0 in harddrive level without partion... my-unix-dream Linux - Newbie 1 04-30-2005 06:48 PM
shrinking disk space ... pelgrimforever Linux - Newbie 2 09-02-2004 12:45 PM
mounting raid-0 windows partion Marcske Linux - Newbie 0 08-21-2003 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:46 AM.

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