Add an extra hard disk to an existing one without data loss and use them as single???
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Add an extra hard disk to an existing one without data loss and use them as single???
hello everybody!!!
i just like to inquire if we could add an extra hardisk to an existing one and make them work as single hard disk without making raid 0.coz as far as i know if we make raid 0 we need to format both hard disks causing data loss...
the existing harddisk is nearly full containing significant data..so we can't lose the data in it anyway...
is any other solution possible
Add an extra hard disk to an existing one without data loss and use them as single???
hello everybody!!!
i just like to inquire if we could add an extra hardisk to an existing one and make them work as single hard disk without making raid 0.coz as far as i know if we make raid 0 we need to format both hard disks causing data loss...
the existing harddisk is nearly full containing significant data..so we can't lose the data in it anyway...
is any other solution possible
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Yes you can with the use of LVM partitions. Check that out. Not knowing your distro and current setup, it can be easy or take some time. If current drive is not LVM then you will need to make the second drive one large LVM partition and create LVM volumes with in it matching or larger than current used linux partitions. Then copy the data over to them. Next unmount old partitions and bring the new volumes up as the same directory as the old. Now you can repartition the old drive and either move them back or leave them where they are. One thing to leave as a standard ext2/3 partition is the /boot partition and leave on the main drive.
The only way to use them as a "single" is to either do RAID or LVM and in either case to maximize usage you'd have to "reformat" (not actually what you do but close enough for this discussion) unless it was already in a RAID or LVM setup. Some distros automatically lay out things as LVM if the drive is large enough.
Run "df -h" to see what you have mounted. If you see "VolGroup" somewhere the device side of the df then it means you're using LVM already and can expand the Volume Group fairly easily.
However you don't have to use them as a "single". You can add the second disk and add its space to the system. You could then migrate your important files to that space leaving your OS, swap, /tmp on the original disk. So if you had a single mount (/) but all the key files you want are in a directory called /importantstuff you could setup the new drive. mv /importantstuff /importantstuff.old then mount the partition (or logical volume) from the new drive as /importantstuff then copy all the files from /importantstuff.old to /importantstuff. Once you were sure everything were operational on the new /importantstuff you could remove /importantstuff.old to free up the space on the original drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.