1834696 Members
2098 Online
110069 Solutions
New Discussion

file system swap

 
rajeshk
Advisor

file system swap

Hi,
During installation i have configured 8+4GB HDD as following in attachement and device swap as 1gb. And left out some free space and thought of creating File system swap later. Now i want to find out this free space and allocate some free space for file system swap and some for future to extend tmp file system.

Suggestion please to find out the free space and to configure File system swap.

Thanks
K.Rajesh
13 REPLIES 13
Armin Feller
Honored Contributor

Re: file system swap

Hi,

why you wants to create slow filesystem swap if you can create secondary device swap.

To create secondary device swap you can use SAM, Disks and Filesystems, create new lvol and configre this as SWAP/DUMP device.

After swapon the system will use this also and in order of the priority. You can give the secondary device swap the same priority like lvol2 (primary device swap).

If you have further questions, let me know.

Regards ...
Armin
Balaji N
Honored Contributor

Re: file system swap

hi,
your attachment doesnt show any details about free physical extents.

do a vgdisplay -v and give us the outputs. and as suggested already, create a secondary swap rather than a file system swap.

an after thought. are u trying to say that in the free space available on one of the logical volumes, you would like to create a file system swap?
man swapon for more info.

-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
rajeshk
Advisor

Re: file system swap

Hi Balaji,

As you requested the vgdisplay out i am sending the o/p in a text file. Please go through and guide me.
Pete Randall
Outstanding Contributor

Re: file system swap

You have 131 free physical extents (Free PE) of 4 MB each (PE size), or 524 MB free. You can use this space for FS expansion or swap (or both), but don't use filesystem swap. As stated previously, it's inefficient.

Pete

Pete
rajeshk
Advisor

Re: file system swap

Hi Pete Randall,
Thanks for your response.

How do i create the Device swap for this free space.
Can you tell me the steps involved.

Regards,
K.Rajesh
Pete Randall
Outstanding Contributor

Re: file system swap

I would do as Armin suggested and use SAM.

Otherwise, it involves manually creating a logical volume and enabling it for swap with the swapon command.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: file system swap

I would question, however, whether you really need additional swap space. How much memory do you have? What type of machine is this? What is the O/S? Are you seeing any swapping?


Pete

Pete
rajeshk
Advisor

Re: file system swap

Hi,

Thanks Guys.

Regards,
K.Rajesh
T G Manikandan
Honored Contributor

Re: file system swap

If you have 512MB space then you can do

#lvcreate -l 128 -n devswap -C y -r n /dev/vgxx
Enable swap
#swapon -p 1 /dev/vgxx/devswap
(priority 1)

make sure to update the /etc/fstab file to make it active every reboot.
The easier way would be using SAM-->add device swap

Thanks
rajeshk
Advisor

Re: file system swap

Hi,

It's D270 Server. 11i O/S.
1GB RAM. 1GB device swap.
4+8 GB HDD. Now i need to install mq-series, c++, ANSIC,
Oracle 8.1.7 and our client supplied softwares.

Balaji N
Honored Contributor

Re: file system swap

man lvcreate. note that swap volumes are contiguous.

and then add it to fstab. then you can do a reboot or do a swapon to enable it for swaping.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Steven E. Protter
Exalted Contributor

Re: file system swap

Rajesh,

You got some really good advice here. Please take the time to assign a few points to Pete who took time to help you.

I don't need any, I have nothing to add to the post, other than to note you are getting solid advice.

SEP
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
rajeshk
Advisor

Re: file system swap

Thanks, it works.