1833772 Members
2590 Online
110063 Solutions
New Discussion

Relocating Primary Swap

 
Gary Cooper_1
Esteemed Contributor

Relocating Primary Swap

Currently I have 8GB swap (/vg00/lvol2) on my root disk. I want to move this to another disk.
What I thought I would do was to create another Primary Swap area on the second disk then delete the original one.

I have created /vg01 on my second disk (and have made it bootable), and also created logical volume /vg01/lvol1. When I try to run lvlnboot -s /dev/vg01/lvol1, it returns:
"lvlnboot: A Root Logical Volume must be assigned before a Dump or Swap logical volume can be assigned"

I'me not quite sure where to go from here - any suggestions would be much appreciated.

Thanks,

Gary
6 REPLIES 6
tkc
Esteemed Contributor

Re: Relocating Primary Swap

hi gary,

are you not planning to use it as root device? the lvlnboot -r option will define the root lv on this /dev/vg01/lvol1
tkc
Esteemed Contributor

Re: Relocating Primary Swap

hi gary,

don't think you can just move out the primary swap just like that. you will need the primary swap as your dump space too.
Gary Cooper_1
Esteemed Contributor

Re: Relocating Primary Swap

I wasn't intending to make it my root device as that is currently my first disk (/vg00) and is working fine. I did think I might configure it as a dump device too though.

Cheers,

Gary
Steven E. Protter
Exalted Contributor

Re: Relocating Primary Swap

Shalom,

swap and dump do not need to be the same device. If one has the space, its best to locate them separately.

I have never in 15 years relocated swap. It can be done from the command line, but if I don't do something regularly, I'd say sam is a good choice.

You can define a new swap device, set the current one to become in active.

Then you have to boot your system for it all to take effect.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gary Cooper_1
Esteemed Contributor

Re: Relocating Primary Swap

Shalom Ppeter,

I would normally have tried to use sam, however, this is an 11iv3 machine that uses smh instead of sam and I can't see where to configure primary swap using smh.

BTW, I want to relocate swap off the root disk because fresh out of the box, I have less than 2GB of disk to play with for extending my various file systems.

Thanks,

Gary
Gary Cooper_1
Esteemed Contributor

Re: Relocating Primary Swap

Sorry Steven, don't know where I got the Peter from!!! (Senior moment)

Cheers,

Gary