Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

increase swap partition

Status
Not open for further replies.

predamarcel

IS-IT--Management
Jan 6, 2003
268
RO

Hi,
I have a Slorais 8 installed on a Blade2000 box.
I have only one scsi.
I need to increase swap patition(s)
now is one of ~500M and another one of ~2G.
I want to create one of 4G.

How can I do that in the shortest period of time,
without losing HDD data
(I have some applications installed, with a lot of patches).

Do you know if exist some tool for resizing partition(s) ?


My partition table,
mounted partitions are
/ - ~34GB
/usr - ~31GB
and 2 swapt partitions
#######################33
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 swap wu 104 - 506 1.96GB (403/0/0) 4100928
1 swap wu 0 - 103 516.75MB (104/0/0) 1058304
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 root wm 507 - 7551 34.18GB (7045/0/0) 71689920
4 usr wm 7552 - 14086 31.71GB (6535/0/0) 66500160
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
####################

thanks
 
create another partition of about 1.5G (2G +0.5G + 1.5G = 4G)

eg. if you create in slice 5
swap -a /dev/dsk/cxtxdxs5

also add an enrty to /etc/vfstab
/dev/dsk/cxtxdxs5 - - swap - no -

so it will add the swap on reboot
 
The problem is that I have no more space to create a new slice.

Now I'm trying to shrink the /usr partition and to create a swap partition at the end of the disk.
 
oops,

So you I see.
I presume you do not have Veritas Volume manager, which makes the job much more easier.

If not, then you need to boot from CD-ROM and take the risk!!!

boot cdrom -s
backup your /usr (and / to be safe)
repartition
alter vfstab if require.
reboot -r

and pray!!!
 
It doesn't have to be a partition or slice. You can use a normal file as a swap file. Just find a file system that has enough free space and do the following...
Code:
    mkfile 4096m /somedir/swapfile.4G
    swap -a /somedir/swapfile.4G
...then add the following line to your [tt]/etc/vfstab[/tt] file...
Code:
    /somedir/swapfile.4G - - swap - no -
Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top