cancel
Showing results for 
Search instead for 
Did you mean: 

/etc/fstab swap syntax

 
Peter_Brink
Occasional Visitor

/etc/fstab swap syntax

Hi,

 

We are using 11.31.

 

I'm adding a second swap device. The man page for fstab states that a swap device entry should look someting like:

 

/dev/vg01/lv10 / swap defaults 0 0 # swap device

 

On the net I've seen a couple of other syntaxes, for example:

 

/dev/vg01/lvswap ... swap pri=3 0 0

 

and

 

/dev/vg14/lvol15 . swap defaults 0 0

 

Does it matter wheter one uses "/" "..." or "."?

 

The man page does not mention any way of stating the priority of the device, so I "pri=2" seems obselete, correct?

 

How does HPUX keep track of the priority? Istill need to state the priority when running the swapon command.

 

Regards,

Peter Brink


2 REPLIES
Torsten.
Acclaimed Contributor

Re: /etc/fstab swap syntax

SAM was able to help already 15 years ago with this, but the shiny new SMH still can't do this ... (unless I missed it in a newer release).

 

However, back to the roots, command line and vi.

 

 

The man page tells you

 

"

directory
           field is ignored but must not be empty:

 

for this reason you see different characters there ( "/" or "." etc).

 

 

 


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Peter_Brink
Occasional Visitor

Re: /etc/fstab swap syntax

:)

 

Thanks!