Você está na página 1de 7

Administering Oracle on Linux

[root@test ~]# df h
Filesystem
/dev/sda1
none
/dev/sda3
/dev/hdc

Size
6.9G
1014M
11G
64M

Used Avail Use%


2.8G 3.8G 43%
0 1014M
0%
5.3G 4.6G 54%
64M
0 100%

Mounted on
/
/dev/shm
/u01
/media/cdrecorder

[root@test ~]# fdisk -l


Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
/dev/sda1
*
/dev/sda2
/dev/sda3

Start
1
911
1251

End
910
1250
2610

Blocks
7309543+
2731050
10924200

Id
83
82
83

System
Linux
Linux swap
Linux

/u02

Adding Space on VM Linux D4715

Administering Oracle on Linux

Adding Space on VM Linux D4715

Administering Oracle on Linux

Adding Space on VM Linux D4715

Administering Oracle on Linux

Adding Space on VM Linux D4715

Administering Oracle on Linux

Create Partition

[root@test ~]# fdisk /dev/sdb


Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 1305.
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: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Command (m for help): n
Command action
e
extended
p
primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1305, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):

Adding Space on VM Linux D4715

Administering Oracle on Linux


Using default value 1305
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
The partition table has been altered!

[root@test ~]# fdisk -l


Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
/dev/sda1
*
/dev/sda2
/dev/sda3

Start
1
911
1251

End
910
1250
2610

Blocks
7309543+
2731050
10924200

Id
83
82
83

System
Linux
Linux swap
Linux

Id
83

System
Linux

Disk /dev/sdb: 10.7 GB, 10737418240 bytes


255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
/dev/sdb1
dad

Start
1

End
1305

Blocks
10482381

Format Partition

[root@test ~]# mkfs -t ext3 /dev/sdb1


mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1310720 inodes, 2620595 blocks
131029 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Create the mount point

[root@test ~]# mkdir /u02

Adding Space on VM Linux D4715

Administering Oracle on Linux


[root@test ~]# mount -t ext3 /dev/sdb1 /u02

[root@test ~]# df -h
Filesystem
Size
/dev/sda1
6.9G
none
1014M
/dev/sda3
11G
/dev/hdc
64M
/dev/sdb1
9.9G

Used Avail Use% Mounted on


2.8G 3.8G 43% /
0 1014M
0% /dev/shm
5.3G 4.6G 54% /u01
64M
0 100% /media/cdrecorder
55M 9.3G
1% /u02

Buat label :

Buat label
# e2label /dev/sdb1 /u02
Verify
# e2label /dev/sdb1

Edit /etc/stab

LABEL=/u01
LABEL=/u02

/u01
/u02

ext3
ext3

defaults
defaults

1 2
1 2

/u03

Next buat dengan langkah yang sama untuk /u03 dengan hasil akhir seperti dibaawah !

root@test ~]# df -h
Filesystem
/dev/sda1
none
/dev/sda3
/dev/sdb1
/dev/hdc
/dev/sdc1

Size
6.9G
1014M
11G
9.9G
64M
9.9G

Used Avail Use% Mounted on


2.8G 3.8G 43% /
0 1014M
0% /dev/shm
5.3G 4.6G 54% /u01
55M 9.3G
1% /u02
64M
0 100% /media/cdrecorder
55M 9.3G
1% /u03

[root@test ~]# e2label /dev/sdc1 /u03


[root@test ~]# e2label /dev/sdc1
/u03

# This file is edited by fstab-sync - see 'man fstab-sync' for details


LABEL=/
/
ext3
defaults
none
/dev/pts
devpts gid=5,mode=620
none
/dev/shm
tmpfs
defaults
none
/proc
proc
defaults
none
/sys
sysfs
defaults
LABEL=/u01
/u01
ext3
defaults
LABEL=/u02
/u02
ext3
defaults
LABEL=/u03
/u03
ext3
defaults

Adding Space on VM Linux D4715

1
0
0
0
0
1
1
1

1
0
0
0
0
2
2
2

Você também pode gostar