mount multiple hard drives to one folder as one drive

I'm pretty new to this and have been searching for this a while now..

I need to be able to mount multiple hard drives as "one drive" at /mydata folder. How do i do this as easy as possible in command-line? I need to be able to addd more drives later on if needed.. ;)

Edit: I use Ubuntu 14.04 server testing with vmware atm..

-S

1

2 Answers

@Ståle Gulbrandsen you can use raid concept. Raid is a data storage virtualization technology that combines multiple disk drive components into a logical unit for the purposes of data redundancy or performance improvement.I Hope that raid will do your needful

2

LVM2 is made for this.

sudo apt-get install lvm2

Mark partitions as type 8e linux lvm

Create pv's (physical volumes) on as many physical partitions as you desire.

Add the pv's to a volume group

Create a logical volume on the volume group

Create a file system on the logical volume.

When you add more disk, create the pv's, then extend the vg, lv and file system.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like