Operating System - HP-UX
1822896 Members
3473 Online
109645 Solutions
New Discussion юеВ

Re: Activating local swap area

 
SOLVED
Go to solution
Manuales
Super Advisor

Activating local swap area

How do you create local swap area?
This is because probably i'm going to replace a disk and in this disk is activated local swap area on vg01.

/dev/vg01/swap1
/dev/vg01/swap2
/dev/vg01/swap3

Thanks, Manuales.
4 REPLIES 4
Raj D.
Honored Contributor
Solution

Re: Activating local swap area

Hi Manuales ,

Add in /etc/fstab

Like this :

/dev/vg01/swap1 ... swap pri=0 0 0
/dev/vg01/swap2 ... swap pri=0 0 0
/dev/vg01/swap3 ... swap pri=0 0 0

Then use :
# swapon -a

Then check ,
# swapinfo -tm

Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Activating local swap area

Hi Manuales ,
seems I miss read your question .

Well , if you are going to replace the disk that defined as swap area, that must be defined in /etc/fstab.

Remove from fstab entry , reboot , and then you can replace the disk.

After replace , you can create the lvols and add in fstab and do # swapon -a .

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Manuales
Super Advisor

Re: Activating local swap area

Thanks Raj ...

could you see next link
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985216

could you tell me, under your opinion, do you think this disk is bad?

Thanks Manuales.
Raj D.
Honored Contributor

Re: Activating local swap area

Hi Manuales ,
I have posted reply to that post, and it appears that the disk is bad. Check the logs and go ahead try replacing.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "