resize / and grow swap


 
Thread Tools Search this Thread
Operating Systems Solaris resize / and grow swap
# 1  
Old 12-18-2009
resize / and grow swap

Hi,

this is solaris 10 on sparc sf280r, 2 disks mirrored using SVM,

swap is 4GB (slice 1) and rest all is given for / (slice0) in 36G disk.

I have already mirrored disks using SVM, for clear picture, I'm pasting some part of config below,

# Slice 0
metainit -f d110 1 1 c1t0d0s0
metainit -f d120 1 1 c1t1d0s0
metainit d130 -m d110
metaroot d130

# Slice 1
metainit -f d111 1 1 c1t0d0s1
metainit -f d121 1 1 c1t1d0s1
metainit d131 -m d111


Now, I'd like to make swap 8GB from 4GB and for that I have to use space from /

Can someone please tell me easy steps to achieve above? If possible w/o going into single user mode. I have FC disks which I can swap just if this process is going speed up the resizing process.

Additional Info : from format c1t0d0
Code:
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 - 21533       29.66GB    (21534/0/0) 62211726
  1       swap    wu   21534 - 24437        4.00GB    (2904/0/0)   8389656
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm   24438 - 24619      256.74MB    (182/0/0)     525798

partition

Please let me know and thanks in advance.

Smilie

Last edited by upengan78; 12-18-2009 at 01:51 PM..
# 2  
Old 12-18-2009
You can just create a 4 gigabyte file somewhere in your root filesystem and add it as a swap device permanently in /etc/vfstab.

Something like:
Code:
mkfile 4g /swapfile
swap -a /swapfile
echo "/swapfile - - swap - no -" >>/etc/vfstab

# 3  
Old 12-18-2009
btw, did you remember to change your dump device?
dumpadm -d /dev/md/dsk/d131
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies

2. Solaris

No swap space to grow stack

Dear Solaris Experts, I had a Problem with swap consumption in our Production server. I found error message in /var/adm/message: Aug 1 10:55:40 production genunix: WARNING: Sorry, no swap space to grow stack for pid 29716 (oracle) What should I do for temporary solution? I need no... (4 Replies)
Discussion started by: edydsuranta
4 Replies

3. Solaris

How to grow my files System?

Dear Gurus of Unix. When I Put this command: # iostat -E cmdk0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: SAMSUNG SV4012H Revision: Serial No: 0540J1BTC53208 Size: 40.06GB <40060403712 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal... (6 Replies)
Discussion started by: andresguillen
6 Replies

4. AIX

Any tips to grow iSCSI LUN

Hi, I have an iSCSI LUN attached to an AIX 5.3 box. It's initial size is 250GB, I just grew it on the SAN to 300GB, but AIX is not seeing the change. Right now I have some processes going and it's eating up the disk space. I need to grow this lun by atleast 30GB otherwise the process with bomb... (5 Replies)
Discussion started by: bbbngowc
5 Replies

5. UNIX for Dummies Questions & Answers

Help to Grow the Size of volume

I have a 146Gb drive and want to grow the size from 12G to the max available left. I think 20G is being used so I want to max out from 12 G to 126G. Is this possible? Can you help with the command. root@WRPDWI6k-BU # df -h Filesystem size used avail... (3 Replies)
Discussion started by: udubya
3 Replies

6. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

7. Solaris

grow filesystem

Hi, how to grow a filesystem when the 2 disks are mirrored using hardware RAID? Only 100G out of 136G is used for now. I would like to increase one of the slices by adding the 36G of space. Pls assist. I only know of using growfs on mirrored disks using SVM.(soft mirror) (12 Replies)
Discussion started by: incredible
12 Replies

8. SuSE

grow /var size how

Hi all, I am using SLES 9 and have following partitions mounted I would like to make /var 10G atleast. fdisk -l This system is doing RAID5(HW). Can someone help me with this issue? Thanks (4 Replies)
Discussion started by: upengan78
4 Replies

9. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

10. What is on Your Mind?

Where to grow up?

Hi, all! I've been working for one year as a Unix systems engineer(Solaris) in a large company. Two days ago I found, that I didn't exactly know where should I grow up? I can't drop this idea away and I'm still thinking about it. I'm trying to imagine myself in a next year. Available... (1 Reply)
Discussion started by: movx
1 Replies
Login or Register to Ask a Question