1822018 Members
3651 Online
109639 Solutions
New Discussion юеВ

Change Swap to Swap/Dump

 
Joe D'urso
Occasional Contributor

Change Swap to Swap/Dump

I have successfully added an additional swap device, however I want to specify
it as being swap/dump.

How do I do this ?
4 REPLIES 4
Neil Gast_1
Frequent Advisor

Re: Change Swap to Swap/Dump

Use the lvlnboot command with the -d option to specify dump volumes. This
command updates the BDRA on each bootable disk to identify all dump devices.

See lvlnboot(1M) for additional information.

MrNeil
Joe D'urso
Occasional Contributor

Re: Change Swap to Swap/Dump

I tried it on 2 different logical volumes and got the same result:

Try #1:

tbz:/>lvlnboot -d /dev/vg00/lvswap
lvlnboot: Logical Volume "/dev/vg00/lvswap" must be contiguous.
tbz:/>



Try #2:

tbz:/>lvlnboot -d /dev/vgdump/lvol1
lvlnboot: Logical Volume "/dev/vgdump/lvol1" must be contiguous.
tbz:/>
Neil Gast_1
Frequent Advisor

Re: Change Swap to Swap/Dump

See the man page for lvlnboot(1M) and lvcreate(1M).

The -d option to lvlnboot specifies that the LV must be a contiguous LV, and
cannot have Bad Block Relocation enabled. An LV that does not meet these
criteria cannot be specified as a dump device. A strictly allocated LV is one
that was created with all physical extents contiguous. You can check yours like
so:
lvdisplay -v /dev/vg??/ | more

Under the Logical Extents section, if the PE numbers are not contiguous and in
order, with no gaps or breaks, then it's contiguous.

You can change the Bad Block Reloc on the fly using lvchange, but the
allocation of the PEs is set when you create the LV. You can check the
configuration that was in effect when the LV was created using "lvdisplay
/dev/vg??/"

MrNeil
Alan Riggs_1
Regular Advisor

Re: Change Swap to Swap/Dump

In addition to being contiguous and having no bad block relocation, the dump
volume must also:
be a part of the root volume group
reside solely in the first 2 GB of disk space.
not exceed 2GB in size (for each volume, not total)