Escolar Documentos
Profissional Documentos
Cultura Documentos
For upgrade, Iteration 1, for Development Environment, which will be with 2 Servers, whereas,
1 server is for Database and the other server is for Application.
Database Server:
Application Server:
File System:
File System should be same as Production, and in addition provide three file systems
for 12.2
# fdisk –l
2. Run the fdisk command against the applicable disk you wish to partition. In this instance we
use the example sdb which is the second available disk on this platform:
# fdisk /dev/sdb
Replace ‘sdb’ with the device which represents the disk you wish to modify.
3. Type ‘o’ and press enter to create a new, blank, DOS-style partition table. After doing so, you
can type ‘p’ to display the blank partition table, which will appear as the following:
4. Press ‘n’ and then enter to create a new partition. You will be prompted for several pieces of
information including if to create a primary or extended partition (choose primary), which
partition number, and how large of a partition to create. The default values will be to create a
partition as large as the entire disk:
5. Write out the changes to the disk by pressing ‘w’ and then enter. This will cause fdisk to exit
and return to the command prompt. The command ‘partprobe’ should then be run, or the system
restarted, to ensure that the kernel is notified of any partition table changes.
6. A file system can then be created using whatever options are desired on the partition.
# mkfs.ext3 /dev/sda1
http://geekpeek.net/resize-filesystem-fdisk-
resize2fs/
/dev/sda – 16GB system disk with LVM partitions (root and swap)
/dev/sdb – 1GB clean disk for tutorial purpose
For the start of this tutorial tutorial we have created one partition on /dev/sdb disk. Partition
size (/dev/sdb1) is 500MB. We created an ext4 filesystem on this partition and put some dummy
data on it. We will be modifying our partitions with fdisk and filesystem with resize2fs.
For more information on how to create and modify partitions with fdisk read “Linux partitioning
with fdisk on CentOS 6“.
[root@foo1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_foo-LogVol01
13G 4.6G 7.7G 38% /
tmpfs 376M 0 376M 0% /dev/shm
/dev/sda1 485M 105M 355M 23% /boot
/dev/sdb1 494M 402M 67M 86% /geekpeek
We are able to mount the partition at this point, but the filesystem on this partition is only
500MB large. We need to resize the filesystem using resize2fs command in the following steps.
Voila! The partition was successfully extended, as we can see all of the data survived! Always
remember to resize the filesystem with resize2fs.
[root@foo1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_foo-LogVol01
13G 4.6G 7.7G 38% /
tmpfs 376M 0 376M 0% /dev/shm
/dev/sda1 485M 105M 355M 23% /boot
/dev/sdb1 988M 324M 614M 35% /geekpeek
Voila! The partition was successfully reduced to 400MB, as we can see all of the data survived!
Always remember to resize the filesystem with resize2fs.
http://www.dell.com/downloads/global/power/ps3q06-20060189-Michael.pdf
# modprobe dm-multipath
# modprobe dm-round-robin
# multipathd -v0
# multipath -v2
# multipath -ll
The output should list the same number of devices as there are disks in the J4500 array. The following is an
example of output:
35000c5000357625b dm-2 SEAGATE,ST340008SSUN0.4
[size=373G][features=0][hwhandler=0]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:0 sda 8:0 [active][ready]
\_ 1:0:0:0 sdm 8:192 [active][ready]
# multipath -f mpath1
# multipath -F
Making partition
Step 1
Step 2
Make fdisk
Step 3 :
Register with
Step 4 :
mount -o remount,rw /