1825766 Members
2079 Online
109687 Solutions
New Discussion

Re: Swap

 
Christian Salinas Salaz
Occasional Advisor

Swap

Hola

Tengo la siguiente configuración:
1.- Proliant ML350G3 + 4GB RAM
2.- 4 discos de 72 GB ( RAID 0+1)
3.- Red Hat AS 2.1

En la instalación me creo un area de swap de 4GB

Necesito crear una particion de SWAP de 8GB, para la instalación de Oracle.

Realizo un fdisk /dev/cciss pero no funciona
Realizo un fdisk /dev/cciss/c0d0p1 y ahi funciona, pero solo me muestra el filesystem que esta en eso dispositivo...
Y el resto del disco...
4 REPLIES 4
Jairo Campana
Trusted Contributor

Re: Swap

ejecuta el siguiente comando
-bash-2.05b# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 493891 156667 311725 34% /
en tu caso tambien es c0d0 luego la opcion P para ver las pariciones.

-bash-2.05b# fdisk /dev/cciss/c0d0

The number of cylinders for this disk is set to 4357.
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)

Command (m for help): p

Disk /dev/cciss/c0d0: 255 heads, 32 sectors, 4357 cylinders
Units = cylinders of 8160 * 512 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 125 509984 83 Linux
/dev/cciss/c0d0p2 126 878 3072240 83 Linux
/dev/cciss/c0d0p3 879 1129 1024080 83 Linux
/dev/cciss/c0d0p4 1130 4357 13170240 f Win95 Ext'd (LBA)
/dev/cciss/c0d0p5 1130 2384 5120384 83 Linux
/dev/cciss/c0d0p6 2385 3137 3072224 83 Linux
/dev/cciss/c0d0p7 3138 3388 1024064 82 Linux swap
/dev/cciss/c0d0p8 3389 3513 509984 83 Linux

Command (m for help):
legionx
Steven E. Protter
Exalted Contributor

Re: Swap

El intercambio está en el general fijado a en medio un múltiplo del ESPOLà N a un máximo de dos veces PEGà . Si usted fija menos, el sistema puede no funcionar correctamente. Si usted fijó más, el sistema pudo funcionar muy lentamente. Esta regla ha trabajado bien para mí en el Hp-ux-ux y muchas distribuciones del linux. Nota: Utilicé una herramienta para traducir mi respuesta inglesa al español. Apologías si es entrada sin valor. SEP

Swap is in general set to between one multiple of RAM to a maximum of twice RAM. If you set less, the system may not run correctly. If you set more, the system might run very slowly. This rule has worked well for me in HP-UX and many linux distributions. Note: I used a tool to translate my English response to Spanish. Apologies if it is worthl
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Celso Medina Kern
Trusted Contributor

Re: Swap

Hi,

Run sfdisk instead.

Best Regards

Celso ;Â
God bless pessimists, they did the backup!
Celso Medina Kern
Trusted Contributor

Re: Swap

There is a bug with fdisk.

Fix:
util-linux-2.11f-17.7.2.i386.rpm. You can download this from
https://rhn.redhat.com/errata/RHSA-2002-132.html#Red Hat Linux 7.2

I dont know if it´s available in AS2.1.

So, use sfdisk instead.

Iuhhuuu
God bless pessimists, they did the backup!