Operating System - Linux
1748261 Members
3561 Online
108760 Solutions
New Discussion юеВ

Can't make fs as big as partition

 
SOLVED
Go to solution
Tomi Lehtinen
Occasional Contributor

Can't make fs as big as partition

Hello all,

I can't make file system which would be as big as partition defined for fs. I have made partitions with fdisk (see output below) and mount points.

Mount points are:

/oracle/BC1
/oracle/BC1/sapdata1
/oracle/BC1/sapdata2
.
/oracle/BC1/sapdata6

I have defined partition for /oracle/BC1 which is 1.4 Gb and partitions for /oracle/BC1/sapdataX which are 5.0-7.0 Gb each.

When mounting filesystems, I get that 1.4Gb for /oracle/BC1 (correctly) but also /oracle/BC1/sapdataX are sharing that 1.4Gb!

Here is output of 'fdisk /dev/sdb' (related to fs mentioned above):

Device Boot Start End Blocks Id System

/dev/sdb9 625 1389 6144831 83 Linux
/dev/sdb10 1390 2282 7172991 83 Linux
/dev/sdb11 2283 3047 6144831 83 Linux
/dev/sdb12 3048 3685 5124703+ 83 Linux
/dev/sdb13 3686 4323 5124703+ 83 Linux
/dev/sdb14 4324 5216 7172991 83 Linux
/dev/sdb15 5217 5408 1542208+ 83 Linux

Here is /etc/fstab:

/dev/sdb9 /oracle/BC1/sapdata1 ext2 defaults 1 2
/dev/sdb10 /oracle/BC1/sapdata2 ext2 defaults 1 2
/dev/sdb11 /oracle/BC1/sapdata3 ext2 defaults 1 2
/dev/sdb12 /oracle/BC1/sapdata4 ext2 defaults 1 2
/dev/sdb13 /oracle/BC1/sapdata5 ext2 defaults 1 2
/dev/sdb14 /oracle/BC1/sapdata6 ext2 defaults 1 2
/dev/sdb15 /oracle/BC1 ext2 defaults 1 2

And, finally, here is output of df:

/dev/sdb9 1517920 60 1440752 0% /oracle/BC1/sapdata1
/dev/sdb10 1517920 60 1440752 0% /oracle/BC1/sapdata2
/dev/sdb11 1517920 60 1440752 0% /oracle/BC1/sapdata3
/dev/sdb12 1517920 60 1440752 0% /oracle/BC1/sapdata4
/dev/sdb13 1517920 60 1440752 0% /oracle/BC1/sapdata5
/dev/sdb14 1517920 60 1440752 0% /oracle/BC1/sapdata6
/dev/sdb15 1517920 60 1440752 0% /oracle/BC1

Any help would be appreciated.

Bregs, Tomi Lehtinen

HP Netserver LC2000
896 Mb RAM
Pentium III 800Mhz
2 x SCSI Disk Array
-(/dev/sda 2x18Gb RAID1)
-(/dev/sdb 4x18Gb RAID5)
RedHat 6.1 2.2.12-45SAPsmp
2 REPLIES 2
Eugen Cocalea
Respected Contributor
Solution

Re: Can't make fs as big as partition

Hi,

Try this:

mkdir /oracle/BC1

mount /dev/sdb15 first

make the other directories on the /dev/sdb15 partition (ie, after you mount the /oracle/BC1 directory).

then mount the rest of the partitions.

so, if you already have all the partition mounted, do:

umount -a
mount /dev/sdb15
mkdir /oracle/BC1/sapdata1
...
mount -a

should work and solved your problem.

E.
To Live Is To Learn
Tomi Lehtinen
Occasional Contributor

Re: Can't make fs as big as partition

Hi Eugen,

your instructions solved the problem. Many thanks!

Bregs, Tomi