GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Linux ssh commands - what to do here (https://gfy.com/showthread.php?t=1061262)

longdongsilver 03-15-2012 10:09 AM

Linux ssh commands - what to do here
 
Thought i would try something myself since the server guy that has been helping us is away for 2 days.

So ordered a new server to store backups on, i didnt want raid but didnt see the server came with software raid 1 already... thought i'd try to get rid of it myself, never really messed with servers before, nor linux.


server came with software raid 1 it has 2x2tb drives

I want to get rid of all raid. So i was told to reinstall centos 5 64 bit with cpanel

Before i reinstalled i was told to select install from host panel without raid and that i would have to format and install the 2nd drive through whm after.

However every time i try this, the second drive when i mount it is only showing 21 gigs of free space??

What is happening with this. Is it not formatting and still has the old partitions on it?

Home2 is showing only 21 gigs of space? it should be showing 1.8tb or more??

I am confused over this how do i just get the server to enable home2 to have 1.8tb of space?

i am seeing this in fdisk -l

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20478976+ 83 Linux
/dev/sda2 2550 243136 1932506112 83 Linux
/dev/sda3 243136 243201 523264 82 Linux swap / Solaris

Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2612 20971520+ fd Linux raid autodetect
/dev/sdb2 2612 243136 1932012544 fd Linux raid autodetect
/dev/sdb3 243136 243201 525920 82 Linux swap / Solaris



seeing some auto raid detection on sdb?? why is that not gone? after i formatted through whm?



in df -f



Filesystem Size Used Avail Use% Mounted on
rootfs 20G 3.6G 15G 20% /
/dev/root 20G 3.6G 15G 20% /
none 12G 140K 12G 1% /dev
/dev/sda2 1.8T 243M 1.7T 1% /home
tmpfs 12G 0 12G 0% /dev/shm
/dev/loop0 485M 13M 447M 3% /tmp
/dev/loop0 485M 13M 447M 3% /var/tmp
/dev/root 20G 3.6G 15G 20% /var/named/chroot/var/run/dbus
/dev/sdb1 20G 173M 19G 1% /home2



what is happening? and how to get that auto raid detection off?

can i expand home2 to 1.8tb to match drive one with ssh?

im searching google for format over ssh or some way to make the home2 partition larger but i cant find any way to do it. It seems the software raid is gone from drive 1 now, but i cant get drive 2 to show up with any space more than 21 gigs, i;ve reinstalled the OS 3 times now.

thanks for any guidance

jayme_ 03-15-2012 12:07 PM

to get rid of the 'linux raid autodetect' you need to re-partition (i suggest using 'parted' rather than 'fdisk' since fdisk has size limitations of 1.5TB (and it does not work on GPT table types)) and set the partition types to 'Linux'

After you partition the sdb properly via 'parted' you need to make a filesystem on it (i.e. mkfs.ext3 /dev/sdb1).


Hope that helps, good luck ;)

longdongsilver 03-15-2012 05:49 PM

Quote:

Originally Posted by jayme_ (Post 18825659)
to get rid of the 'linux raid autodetect' you need to re-partition (i suggest using 'parted' rather than 'fdisk' since fdisk has size limitations of 1.5TB (and it does not work on GPT table types)) and set the partition types to 'Linux'

After you partition the sdb properly via 'parted' you need to make a filesystem on it (i.e. mkfs.ext3 /dev/sdb1).


Hope that helps, good luck ;)



Thanks very much for that , it helped me get this fixed.

Very grateful.

cheers :)


All times are GMT -7. The time now is 07:29 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123