how to mount my two new hard drives in centos

FileSick

Verified User
Joined
Oct 5, 2013
Messages
104
hello

i just upgraded my servers and added two hard drives one of them 3 TB and the other is 2 TB so how to mount them on

/home/admin/domains/filenerd.com/public_html/userarea/uploads

or

/home/admin/domains/filenerd.com/public_html/

without losing any of my data right now cause i have almost 2 TB of data for my websites users please help me ASAP cause i don't have any extra space left on the servers

waiting for your respond
 
i'm so sorry for doing so but i thought it's different from the other topic i have also i didn't understand the first topic could you please give me like the commands i will use like you tell me do step 1,2,3 and i will do it

waiting for your respond
 
now everything is gone is there is anyway possible to return all the data that has been lost please what when i reached this command

i was using this tutorial http://dbiers.me/add-new-drive-to-centos/

and i reached this command mount -t [filesystem] [source] [mount directory]

but i entered this command : mount -t ext3 /dev/sdb3 /home/admin/domains/filenerd.com/public_html/userarea/uploads/

now it says this in the complete usage statistics

/dev/sda1 1.8T 196M 1.7T 1% /home/admin/domains/filenerd.com/public_html/userarea/uploads
/dev/sdb3 1.8T 196M 1.7T 1% /home/admin/domains/filenerd.com/public_html/userarea/uploads
/dev/sdc1 504M 123M 356M 26% /boot
/dev/sdc2 907G 686G 176G 80% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 200G 2.9G 198G 2% /tmp

now when i open this directory i can see that it's empty but when i login in the admin level section i see the sapce like nothing happened but when i go to the user level area i see the space after the wiped data please help and tell me what to do and how to fix this issue and if there is anyway to return all the data and to mount it properly please help me ASAP

i am ready to hire anyone for whatever the price is please help me ASAP

waiting for your respond
 
come on guys i need help ASAP the website is down too many users right now can't access the website please help me can i get the data back or not please tell me what to do ppppppppplllllllllllllllllllleeeeeeeeeeeeeeeeaaaaaaaaaaaaaasssssssssssssssseeeeeeeeeeeeee
 
now i unmounted the new HDD that was empty and mounted the full HDD again so is there is anyone here can tell me how to mount the two new HDD on the exact same path as the full HDD on /home/admin/domains/filenerd.com/public_html/userarea/uploads

waiting for your respond
 
These steps might bring to data loss. So you should check them in a test environment before you apply them on your production server; you should not follow them without testing and understanding the steps. I'm not responsible for any damages or data loss which might or not occur when following the steps below:

1. You should use LVM to group two new drives into a VG and mount LV to
/home/admin/domains/filenerd.com/public_html/userarea/uploads.new

2. Copy data from /home/admin/domains/filenerd.com/public_html/userarea/uploads to /home/admin/domains/filenerd.com/public_html/userarea/uploads.new

3. Unmount /home/admin/domains/filenerd.com/public_html/userarea/uploads

4. Unmount /home/admin/domains/filenerd.com/public_html/userarea/uploads.new

5. Add old DISK previously mounted as /home/admin/domains/filenerd.com/public_html/userarea/uploads into VG created on the 1st step and extend the LV.

6. Mount LV as
/home/admin/domains/filenerd.com/public_html/userarea/uploads

And still I would not recommend doing this. As if any of the 3 HDDs fails you might loose all the data on them.

related: http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/
 
@FileSick:

I took the liberty of looking at your site. What you want to do is very interesting. Alex has told you how to create a Volume Group of Logical Volumes. And he's right to recommend you not do it.

The right way to do this would be to start over, with Network Attached Storage, and a Network Attached Storage System which would let you add drives as you need them, as you grow.

Of course that's expensive.

If it were me, personally, I'd look into doing this project with something like AWBS (Amazon) or similar. Even Netflix does that. The key isn't in owning all those drives, it's in being able to cost effectively manage the growth.

Again, if I were to do it I'd do it with Network Attached Storage. If you can't do that, I'd recommend as a fallback position LVMs, VGs all on top of hardware RAID 10.

Note, I'm not a hardware expert; you can probably get specifics from others on these and other forums, but that's how I'd look at it.

Jeff
 
thank you so much nobaloney for your great respond i hired smtalk and he will do the LVM for now and in the future i will do it like you said i will use AWS when the budget allow me to do so

thank you so much guys i really love it here you guys are the best

have a great day everyone
 
Back
Top