Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd April 2007, 07:54 PM
pshepherd Offline
Registered User
 
Join Date: Apr 2005
Posts: 8
Replacing hda with larger drive

I am running FC6 on a machine with 3 hard disks and I am intending to replace hda with a larger device and want to check that I am doing it the right way.

LVM is installed as follows:

hda1 /boot
hda2 VG00 split into LV00 which is / and LV01 is swap
hdb + hdd1 VG01 set up as LV02 and mounted as /usr/data

I think this is all pretty standard. All 4 IDE drive slots are in use (3 x hd + 1 cd/dvd).

From what I read in the LVM how-to, this forum etc, I propose to:

1) unmount /usr/data

2) power off, disconnect the cables to hdb and hdd, connect new drive as hdb, then power on

3) dd if=/dev/hda of=/dev/hdb

4) fdisk /dev/hdb to create a new partition in the remaining space

5) power off, replace old hda with new one, reconnect hdb and hdd, power on

6) mount /usr/data and the new partition

Is this going to work ? TIA

Paul
Reply With Quote
  #2  
Old 3rd April 2007, 03:35 AM
lmo Offline
Registered User
 
Join Date: Mar 2007
Posts: 1,047
1) make sure fstab does not try to mount /usr/data by specifying noauto. Also make sure field 6 is a 0 so that it won't hang up trying to fsck something that won't be there.Here is what one of mine looks like:
/dev/hdg3 /data2 ext3 defaults,noauto 0 0

2) All partitions on resulting hdb will be exact same sizes as hda with unallocated space at the end.

That is what it looks like to me. However, I know nothing of LVM since I'm not using it and never plan to.
Reply With Quote
  #3  
Old 3rd April 2007, 03:13 PM
A.Serbinski Offline
Registered User
 
Join Date: Jul 2006
Posts: 1,123
Forget about unmounting anything.
The easiest way to do this operation is to download the FC6 livecd. Boot off that with both the original and the new disk attached to the system, then dd if=/dev/origina of=/dev/new

You can now get rid of the original disk as the new one has a copy of everything. Only thing is that your partitions will be exactly the same size as the originals and you will have a bunch of free space.

LVM can be resized to fill the whole disk, or even to span a partition across multiple disks. If you really want to, you can just add the new disk, expand the volume into the new disk, and use the combined size. Either way, you need to mess with LVM.

Read this; http://fedoranews.org/mediawiki/inde...tions_with_LVM
Reply With Quote
Reply

Tags
drive, hda, larger, replacing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM help replacing disk with larger disk Doug G Using Fedora 5 11th October 2006 08:48 AM
Migrating FC5 Default Install to Larger Hard Drive gadgetwiz EOL (End Of Life) Versions 14 2nd October 2006 02:33 AM
How to move a Fedora installation to a larger hard drive wizard Guides & Solutions (No Questions) 9 6th August 2006 05:43 PM


Current GMT-time: 01:09 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat