Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
1 - You can't combine them without reinstalling the OS. You can split up your directories though, put some of them on one drive, some on another. It depends on how your space is being used right now. Is the 150 GB more or less split between 2+ locations, or is it all being used in one directory (movie archive or something)?
2 - Possible, but I would recommend just installing from scratch on the 1 TB and using the current drive to re-load your files/settings once the new OS is up
3 - Unless you're already using LVM, that would require you to reinstall the OS as in #1.
RAID 5 requires 3+ drives. You could do RAID 0, but again you're back to reinstalling the OS, loading your files from a backup, etc.
Last edited by suicidaleggroll; 05-11-2015 at 01:10 PM.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,479
Rep:
As you have been happy with your current set up, I would just add the extra disk, move some data off your current drive, change your fstab to use/point to the new disk.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
As fatmac says, assuming your second 150Gb drive is going to be for data; music, video, pictures, or whatever you can just mount it somewhere in your system's home directory.
For example, if you make a directory within your home directory called, say, My_stuff then mount your second disk to My_stuff.
Code:
mount /dev/sdx /home/My_stuff
where "sdx" is your new drive.
Then, when you access the My_stuff folder in your home directory you're actually on your "new" disk.
In Linux the file system is a tree and everything on the tree is a file, even a disk. Like a Christmas tree bauble, you can hang it anywhere you want on the tree. (though some places are obviously more logical than others!!)
so, I was thinking about just buying a 1TB hard drive. this server is mainly a backup for all my virtualization VDI, clonezilla images, and samba share applications.
so, I can just add a 1tb to the current desktop server, then just move it over to the 1tb? but I am going to have to mount it first; """"mount /dev/sdb /files/backup""" that is where I keep all my back up in the current /dev/sda.
I wont have to alter all my rsync scripts or anything like that, right? it will just point right to it? I am just going to keep my 150gb plus add a 1tb.
Make sure you understand what each of these commands is doing and pay attention to the output. Don't remove /files/backup.old until you're sure the files have been copied over correctly, etc.
Set it up as a logical volume, then you can add more space to it whenever you want. You'll have to backup, repartition your current drive (assuming it isn't LVM partitioned, currently) then restore everything. But the next time this issue comes up, you can just run a lvextend command and add as much space to it as you want without disrupting any of your current files.
I agree with @kc5hwb - if this is an unused drive going in, and there is the prospect of this needing more space in the future (like adding that 1T), LVM is absolutely made for this.
No need for reinstall of anything - just create the lv, copy the data and extend when necessary. All simple commands, mostly "one off".
I just added my 1tb hard drive, and also keeping my 150gb
I created a whole partition for /dev/sdb1 and mounted it to /backups
I also edited to /etc/fstab
As of now, I am going to change the paths of all my rsync scripts to point to /backups instead.
so right now, I have /backups. I am thinking of moving all my files over there now and keeping the 150gb free for swap and home user stuff.
would you say this was a good idea?
I do have one question,
how do I know /backups is linked to /dev/sdb1 ?
I tried stat backups but nothing shows up. I know I can use df -h and I see it there, but is there another sure way?
thanks for all of your help! Ill also keep you guys updated! and run a clonezilla from /backups to make sure it works
As this thread is about evaluating the different options, I hope this isn't too OT...
Quote:
Originally Posted by kc5hwb
Set it up as a logical volume, then you can add more space to it whenever you want. You'll have to backup, repartition your current drive (assuming it isn't LVM partitioned, currently) then restore everything. But the next time this issue comes up, you can just run a lvextend command and add as much space to it as you want without disrupting any of your current files.
So if an LV spans several disks and one fails, you loose the lot?
Or is it possible to (fairly easily) rebuild / salvage what is on the unfailed disks?
Most info I've found in my (so far pretty cursory) searching assumes or recommends running LVM on top of RAID for any sort of redundancy/fault tolerance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.