Operating System - HP-UX
1753774 Members
7187 Online
108799 Solutions
New Discussion юеВ

Re: remove swap, i think secondary

 
SOLVED
Go to solution
MSwift
Regular Advisor

Re: remove swap, i think secondary

Does not work, I have removed lvol2 from the fstab

# lvlnboot -s /dev/vg00/lvol2
lvlnboot: A Logical Volume has already been assigned
to be the Root or Swap Logical Volume.
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (0/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c0t5d0 (0/0/0/3/0.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c0t5d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c0t5d0
Swap: lvol10 on: /dev/dsk/c0t6d0
/dev/dsk/c0t5d0
Dump: lvol10 on: /dev/dsk/c0t6d0, 0

Thx

Mike
Patrick Wallek
Honored Contributor

Re: remove swap, i think secondary

The primary swap area does not need to be in /etc/fstab.

Try JRF's commands, but in the reverse order:

These will remove (hopefully) lvol10 as primary swap/dump:
# lvrmboot -s /dev/vg00/lvol10
# lvrmboot -d /dev/vg00/lvol10

These will add lvol2 as primary swap/dump:
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2


A 'lvlnboot -v' will show the current settings.

Once lvlnboot shows lvol2 for swap and dump, a reboot should clear up usage of lvol10.
MSwift
Regular Advisor

Re: remove swap, i think secondary

does not work again

# lvrmboot -s /dev/vg00/lvol10
lvrmboot: Volume group "/dev/vg00/lvol10" does not exist in the "/etc/lvmtab" fi
le.
lvrmboot: Illegal path "/dev/vg00/lvol10".

Thx

Mike
James R. Ferguson
Acclaimed Contributor

Re: remove swap, i think secondary

Hi (again) Mike:

> Does not work again
> # lvrmboot -s /dev/vg00/lvol10
> lvrmboot: Volume group "/dev/vg00/lvol10" does not exist in the "/etc/lvmtab" fi
le.

Then, add back the entry to 'fstab' and try again.

Regards!

...JRF...
MSwift
Regular Advisor

Re: remove swap, i think secondary

JRF:

Added the entry to the fstab and also did a mountall, came back OK but the same error when doing the command

# lvrmboot -s /dev/vg00/lvol10
lvrmboot: Volume group "/dev/vg00/lvol10" does not exist in the "/etc/lvmtab" fi
le.
lvrmboot: Illegal path "/dev/vg00/lvol10".
#

Should i change the entry for the options.

/dev/vg00/lvol10 ... swap pri=0 0 0

it says pri=0 0 0

Thx

Mike
Patrick Wallek
Honored Contributor
Solution

Re: remove swap, i think secondary

OK, after consulting the lvrmboot man page, the syntax is slightly off.

Try this:

# lvrmboot -s /dev/vg00
# lvrmboot -d lvol10 /dev/vg00

Then do an 'lvlnboot -v' to see what the results look like.

If swap and dump are blank, then you can try the following lvlnboot commands:

# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2

If those don't work try the following:

# lvlnboot -s lvol2 /dev/vg00
# lvlnboot -d lvol2 /dev/vg00
MSwift
Regular Advisor

Re: remove swap, i think secondary

Patrick i just looked at the man page too! Thanks much. It worked. I am rebooting again

Thanks

Mike.