1833762 Members
2326 Online
110063 Solutions
New Discussion

Re: /swap

 
milaren
Super Advisor

/swap

/dev/vg00/lvol1 /stand 200 hfs
/dev/vg00/lvol2 swap 1024
/dev/vg00/lvol3 / 800 vxfs
/dev/vg00/lvol4 /home 800 vxfs
/dev/vg00/lvol5 /opt 10000 vxfs
can anyone tell me what type of swap,hfs or vxfs?
7 REPLIES 7
Ravi_8
Honored Contributor

Re: /swap

Hi,

swap is neither hfs nor vxfs, it's different kind of file system which contiguous
never give up
milaren
Super Advisor

Re: /swap

3Q!
Norman_21
Honored Contributor

Re: /swap

Hello,

I'm just putting my $0.02 Cents in here:

If you have Secondary swap space, then it is a file system. But if you have only the primary swap, then it's a device file. Do this to find out:

#swapinfo -ta

It'll tell you if you have Primary or Primary and secondary swap configured in your system.

Thanks.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Michael Tully
Honored Contributor

Re: /swap

As stated, swap is neither hfs or vxfs, these are acronyms for filesystems. Swap is not a filesystem. It is an indepenendant logical volume. You can view your swap partitions using 'swapinfo -ta' or you can use 'glance' if you have it. You can also see the priority of your swap partitions by viewing the /etc/fstab file. You will find that your primary swap partition (/dev/vg00/lvol2) is not listed.
Anyone for a Mutiny ?
Trond Haugen
Honored Contributor

Re: /swap

Just to add to the explanations already given. Primary swap is always "device swap". Additional swap can be "device swap" or "filesystem swap".
Primary swap should not appear in fstab (if it does you get a error message about it at boottime). Secondary swap usually goes in fstab (so it will be enabled at boottime).

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Dave Wherry
Esteemed Contributor

Re: /swap

A short addition to Trond's comment about swap volumes not being in fstab. Yes it will generate errors.
I usually do put an entry in fstab for my swap volumes. Those entries are just comments though. Put a # at the beginning of the line. I've also done it with raw volumes just for documentation purposes. If swapinfo or LVM commands were not working for some reason, I can at least go to fstab for volume information. Of course I have to manually keep it up so it's only as accurate as I make it.
CCIL
Frequent Advisor

Re: /swap

Hi !
The swap is different type of file system which is used when you run out of physical memory . hfs is High throughput file system , the /stand file system is always hfs file system. vxfs is veritas file system , you can check the contents of the file /etc/defauls/fs , which will be your default file system .
whenever you create a file system with newfs & without -F option it always refers to /etc/defaul/fs entry.
Amit Vichare