Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 995176

Summary: RFE: Implement set-uuid command
Product: Red Hat Enterprise Linux 7 Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: acathrow, bfan, leiwang, mbooth
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.22.6-2.el7 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 986877 Environment:
Last Closed: 2014-06-13 11:25:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 986877    
Bug Blocks:    

Description Richard W.M. Jones 2013-08-08 17:32:21 UTC
+++ This bug was initially created as a clone of Bug #986877 +++

Description of problem:

Currently UUIDs on ext2/3/4 filesystems can be set using the special
set-e2uuid command.  However it's possible to set these as well for
XFS (using xfs_admin -U ...).  We should implement a generic set-uuid
call which can handle either.

(Requested by: Bo Fan)

--- Additional comment from Richard W.M. Jones on 2013-07-22 08:54:36 EDT ---

Fixed/implemented upstream:

https://github.com/libguestfs/libguestfs/commit/091d22f49e7fcb53fb3bb23e2ba94ca12eb88eab
https://github.com/libguestfs/libguestfs/commit/8580ef7d0f2aac2118fa7b4055f3eb28cd127093
https://github.com/libguestfs/libguestfs/commit/df02c2471f3fe94c691c389c17a5d23d052848dd
https://github.com/libguestfs/libguestfs/commit/8965368eb89532ac1613fffb0a3a661f005bae81

NB: the fs-uuids patch (last one in that list) is broken.  Fixed
by a later patch upstream:

5deea7fce675edb6803cd83a699b80e8ea383488

So either both or neither of those should be applied.

Comment 2 bfan 2013-12-04 09:44:56 UTC
Verified with libguestfs-1.22.6-16.el7.x86_64

# guestfish -N fs:xfs set-uuid /dev/sda1 9a804901-5f19-4b0c-808a-f00c498599fb : get-e2uuid /dev/sda1
9a804901-5f19-4b0c-808a-f00c498599fb


set-uuid works for xfs

Comment 3 Ludek Smid 2014-06-13 11:25:36 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.