How to change the UUID or Label attributes of a swap volume online?

Solution Verified - Updated -

Issue

  • How to change the UUID or Label attributes of a swap volume online?
  • How to use swaplabel utility to change Label of swap volume?
# swaplabel /dev/mapper/swapvg-swaplv
LABEL: swapdata
UUID:  7b4f3d3d-a4e0-45c5-bcc6-c0d700189292

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content