Operating System - HP-UX
1836456 Members
2698 Online
110101 Solutions
New Discussion

Re: swap and dump entry in /etc/fstab file

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

swap and dump entry in /etc/fstab file

On 11.0 box, I have put two lines in the fstab file:
/dev/vg01/lvol1 ... swap pri=1 0 0
/dev/vg01/lvol1 ... dump default 0 0

in this way, this device is used for swap and dump. Can I do that? I'm just not used to seeing the same device in /etc/fstab file ,and served for two different purpose.

I used /sbin/rc1.d/S800crashconf to configure the dump space on the swap device.

none
2 REPLIES 2
Sanjeev gupta_2
Frequent Advisor

Re: swap and dump entry in /etc/fstab file

Hi
To use this logical volume buth as swap and dump, u have to configure it as swap and dump using lvlnboot command(pl. see man page of lvlnboot)
only after that u can use a logical volume for swap and dump.
Thx
sanjeev gupta
Jeff Schussele
Honored Contributor
Solution

Re: swap and dump entry in /etc/fstab file

Hi Hanry,

Yes you certainly can do that & as pointed out if it's primary swap & dump then make sure you designate it with lvlnboot commands.
But when it's secondary swap it can still be primary dump by using pri=0 on the dump line in fstab. Only primary *swap* must reside on the boot/root disk - primary dump can be anywhere.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!