run out of space, how to configure new disk
I'm having trouble finding some clear instructions on how to configure a new disk (scsi in this case) that I have installed.
I've recently noted that space is running out on my RedHat 7.3 system:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda5 381139 267135 94326 74% /
/dev/sda1 46636 43983 245 100% /boot
/dev/sda3 7281808 35416 6876496 1% /home
none 256796 0 256796 0% /dev/shm
/dev/sdb1 8483336 824028 7228368 11% /usr
/dev/sdb2 256665 45835 197577 19% /var
I've installed a new SCSI disk (2GB), but am not sure what needs to be done to:
1. configure it so the OS sees it
2. allocate appropriate space to expand existing file systems
Anyone know of some good insructions that exist or have instructios of their own to point me in the right direction?
well, to get you started, you will need to create a mount point in /mnt. If you are adding it as a third hard drive you can make a mount point called .../sdc. Now you need to create the partitions by using 'cfdisk /dev/sdc'. Assuming you have knowledge of cfdisk, just create your multiple partitions (if you want more than one) and write the new table to the MBR. Now, suppose you're using the jfs filesystem, you will have to mount the new drive with 'mount -t jfs /dev/sdc /mnt/sdc' or 'mount -t jfs /dev/sdc(x) /mnt/sdc' (x) is the number of the partition. Now that its mounted, you have to format it with whatever filesystem that you're using, like this (again, for jfs): 'mkfs jfs /dev/sdc' or 'mkfs jfs /dev/scd(x)'. Now, the drive is ready for use. The last step, which is optional depending on if you want the system to mount the drive automatically at boot time, is to add a line to your 'etc/fstab' file.
1. attach the harddisk to ur comp
2. boot into linux
3. use fdisk to create the filesystem(ext2 or ext3)
4. vi /etc/fstab
and add the following entry
/dev/sdc1 <mount point> <ext2/ext3> defaults 1 3
hope this helps
Thanks for the suggestions so far. The bit I'm not too sure of is how to 'attach' the new disk onto existing partitions. From the breakdown above, I'd like to add some space to /, /boot and /var. I've already used fdisk to create appropriately sized sdc1, sdc2 & sdc3, but how do they get allocated to existing partitions?
|All times are GMT -5. The time now is 11:08 AM.|