On 10/8/21 2:10 PM, Alan Altmark wrote:
The UUID only needs to be unique within a virtual server. I think the
trick here is to use a cloning guest that links to the disk you want to
clone so that the UUID is never duplicated within the owning guest. The
cloning guest will have two copies, but it will never use those disks
itself.
This avoids having to assign new UUIDs.
Perhaps, but it's still a good idea to make each clone unique. If you
ever need to link to another guest's disks, then duplicate UUIDs are
going to cause problems. And really, adding:
tune2fs -U $(uuidgen) /dev/dasd??
to your cloning script is pretty straightforward.
I would also recommend not using chzdev when cloning disks and
manipulating them. Instead, use chccwdev, which doesn't cause any udev
rules to be written to deleted. The chzdev and lszdev commands are
really nice commands, but they are also more capable, and hence complex,
than what is needed during cloning. Use chzdev/lszdev for "normal"
system administration tasks where you actually want those udev rules to
be written/deleted.
Mark Post
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390