LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Disk space problem (https://www.linuxquestions.org/questions/red-hat-31/disk-space-problem-4175452068/)

Joaquin 02-28-2013 06:59 AM

Disk space problem
 
1 Attachment(s)
Hello, I have two 3TB drives in Raid 1. During installation problems with GPT, I had to create two partitions on a 300GB and the other of the remaining space. On the partition of 300GB I installed RedHat 5.

I have about 2500GB remaining I can not mount them. The situation is that you can see in the screenshot attached to this post.

Space that can not be mounted I want to install DB2 for use as a storage Db.

How do I install and use that space?

Thanks.

roreilly 02-28-2013 09:12 AM

From what I see in the screenshot, there is no partition on /dev/sdb. You need to create a partition
and format it. If you do a single partition, you will have /dev/sdb1.

Joaquin 02-28-2013 09:21 AM

I tried to make a partition but maybe wrong in some way. you could tell me how to make a partition and mount it?

Joaquin 02-28-2013 09:56 AM

I created a partition on sdb sdb1 named, as you can see below:

Code:

[root@localhost /]# fdisk /dev/sdb

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


The number of cylinders for this disk is set to 325634.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

WARNING: The size of this disk is 2.7 TB (2678435832320 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Command (m for help): p

Disk /dev/sdb: 2678.4 GB, 2678435832320 bytes
255 heads, 63 sectors/track, 325634 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      267350  2147483647+  ee  EFI GPT

but I can not mount it in any way.

Code:

[root@localhost mnt]# mount -t ext3 /dev/sdb1 /dev/
mount: /dev/sdb1 already mounted or /dev/ busy


yancek 02-28-2013 02:02 PM

As you can see from the warning message in your last post, fdisk does not support GPT. Download the GParted iso and burn it to a disk and boot with it and create your partitions and format.

Quote:

[root@localhost mnt]# mount -t ext3 /dev/sdb1 /dev/
Trying to mount on /dev is probably not going to work. The standard is /mnt or create an sdb1 partition under mount to mount the partition to.

Joaquin 02-28-2013 02:05 PM

I just tried to mount it on /dev after trying to mount other directories.

I've already downloaded GParted Live but has not really seen /dev/sdb.

roreilly 03-01-2013 06:34 AM

try following this guide: http://www.cyberciti.biz/tips/fdisk-...eater-2tb.html

you don't need a gparted live cd, just make sure parted is installed in your machine.
I just used this last week to create a partition on a 6tb array

Joaquin 03-01-2013 06:40 AM

Quote:

Originally Posted by roreilly (Post 4902351)
try following this guide: http://www.cyberciti.biz/tips/fdisk-...eater-2tb.html

you don't need a gparted live cd, just make sure parted is installed in your machine.
I just used this last week to create a partition on a 6tb array


Perhaps my situation is different, but this guide I've seen, and it did not work.

roreilly 03-01-2013 08:10 AM

You created the partition. Did you format it? mkfs -t ext3 /dev/sdb1

Joaquin 03-01-2013 08:15 AM

Quote:

Originally Posted by roreilly (Post 4902414)
You created the partition. Did you format it? mkfs -t ext3 /dev/sdb1

Yes, I did. But when I format tells me that the partition is already mounted or busy.

yancek 03-01-2013 08:44 AM

If you are using the GParted CD, are you able to see sdb by clicking the down arrow in the upper right of the window which shows the different drives? When you select /dev/sdb, do the partitions show in the main window? If you do, do you click on /dev/sdb1 to highlight it then click on the Partition tab at the top, select unmount then go back and select Format to? If you are doing these things it should work.

Check your /etc/fstab and /etc/mtab files to see if there is an entry for sdb1 there and comment the line out before you try to format.

It might be due to RAID which I'm not familiar with. You might post details on each step you have taken.

Joaquin 03-01-2013 08:49 AM

Quote:

Originally Posted by Joaquin (Post 4902420)
Yes, I did. But when I format tells me that the partition is already mounted or busy.


With GParted Live the partition of which we speak is not seen. You can not see /dev/sdb neither /dev/sdb1

roreilly 03-01-2013 09:30 AM

open a console and type 'mount' without the quotes, post the output please.

Joaquin 03-04-2013 03:00 AM

Quote:

Originally Posted by roreilly (Post 4902480)
open a console and type 'mount' without the quotes, post the output please.

I was able to mount the partition, but I had to reinstall RedHat.

Below is the output of the command 'mount':

Code:

[root@localhost ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdb1 on /home type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdc1 on /media/VID type vfat (ro,nosuid,nodev,shortname=winnt,uid=0)
[root@localhost ~]#

But I'm not happy with what I did. With the availability of 3TB, I wish to 1TB for the OS , And 2TB for DB2 and the DB.
I would like to create a 2TB partition, only data that is to be devoted only to the DB.


All times are GMT -5. The time now is 07:10 PM.