Questions tagged [uuid]
The uuid tag has no usage guidance.
59
questions
185
votes
14
answers
300k
views
How to create a UUID in bash?
In Java it is possible to create a random UUID:
UUID uuid = UUID.randomUUID();
How to do this in Bash?
17
votes
4
answers
23k
views
is it possible to simultaneously mount 2 LVM volumes that are exact copies of each other (same UUIDs)?
I have cloned (using dd) the hard drive in a live system onto several multiple backup hard drives. The root partition in the live system is a LVM volume. The backup copies are intended to be drop-in ...
14
votes
7
answers
15k
views
How to create a randomly keyed, encrypted swap partition, referring to it "by-uuid", on Debian?
It is sensible that if you have any sort of block device encryption implemented on your GNU/Linux system, to encrypt your swap partition too, as any decrypted data may be written in cleartext at any ...
11
votes
3
answers
4k
views
Where does Ubuntu store partition UUIDs on disk?
Exactly what part of the disk is a UUID stored on? MBR? Somewhere within the partition? Is it a calculated value, or randomly generated and recorded?
9
votes
3
answers
22k
views
LVM: regenerate a UUID?
I have some virtual machines which were clones of the same original disk image, which contained some LVM volumes. When I clone these, I end up with multiple LVM volumes (albeit on different hosts) ...
9
votes
2
answers
10k
views
Change the UUID of a VHD
How can I change the UUID of a VHD-file?
My problem is that VirtualBox won't accept the VHD-file if it has already been added. But I am moving VHD disks between work/home and cloning them (and ...
7
votes
4
answers
6k
views
How to get the mount point of flash drive by using uuid?
I am beginner in ubuntu linux and i need to write simple bash script, that can identify necessary flash drive(which contains only one vfat partition) using uuid of this partition, and get the mount ...
7
votes
3
answers
6k
views
Using UUIDs for passwords
Does anyone have an opinion on using UUIDs as passwords? This is intended for accounts created for external users, such as customer access to private SFTP folders. Or are people using public key ...
7
votes
3
answers
12k
views
is there any advantage mounting an LV by UUID instead of by path?
I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...).
I see a clear ...
7
votes
2
answers
3k
views
Is there a way to find out what cluster or vcenter an ESX server is on?
I need to be able to identify which cluster or vCenter instance some ESX servers are part of, but need to get this information directly from the ESX server itself. Is this information available in ...
6
votes
1
answer
7k
views
How to reference an NFS share by UUID in the client's /etc/fstab
I have the following NFS export on my server, with fsid set to a newly generated UUID.
/etc/exports:
/mnt/data client(ro,fsid=b07f5af6-6b10-11e3-b4c1-00248115724d)
I would then run exportfs -rav ...
5
votes
2
answers
6k
views
Repurposed disk - Linux blkid command returns incorrect information
I'm working with an SSD drive removed from a VMware ESXi installation. I'm trying to reuse the disk in an existing Linux installation (CentOS 6.2). The drive sits behind an HP Smart Array P410 RAID ...
5
votes
1
answer
5k
views
Will UUID be the same if a disk moved from one machine to another?
While in Linux every disk got a UUID.
I just wondering will the UUID be the same if I moved the same disk from one Linux box to another?
Is it the same UUID in different machines with the same disk?
...
5
votes
1
answer
3k
views
Refresh uuid of physical device
I'm trying to clone a LUN on a server and present it to the same server and am running into UUID oddities. I don't create partitions on the LUN, just create a PV and then LVM on top of that so I can ...
4
votes
2
answers
16k
views
Change Instance UUID for VM in ESXi
Background
I'm running ESXi 6.0.0 in free mode. I created one VM and then copied its files to another folder in the datastore to create the next machine (almost like a template). I wound up with ...
4
votes
1
answer
11k
views
/dev/disk/by-uuid not showing all disks
I am working with local storage repositories on an installation of XenServer and I am trying to use the UUID to delete a SR made in error. When I look at the disks by-id here is the output:
[root@...
4
votes
2
answers
2k
views
Converting Debian fstab to use UUIDs via linux-base?
We have a few Debian 5 systems that are still using /dev/hda in the fstab. We'd like to covert them to using UUIDs. This is supposed to be done automatically via the "linux-base" package (postinst), ...
3
votes
2
answers
5k
views
VMware: identifying source template
Is there a way to identify a parent template for VMs. I've got a few VMs created from different templates and I need to confirm source template.
I've tried blkid and dmidecode -s system-uuid but it ...
3
votes
1
answer
473
views
in which cases it will be problematic to configure UUID in fstab
We are thinking about to change all Linux fstab configuration to work with UUID
instead the current configuration
Some of the disks are with non RAID and some of the disks are with RAID10
I searched ...
3
votes
2
answers
4k
views
PostgreSQL update problems with uuid
I am trying to run yum update on my CentOS 5.2 box and keep getting this message:
Missing Dependency: libossp-uuid.so.15 is needed by package postgresql-contrib
I ran yum update postgresql ...
3
votes
1
answer
1k
views
qemu does not give by-id symlinks for drives by UUID in linux guest
I am trying to get my drive to show up in QEMU guest virtual Linux machine.
desired behavior:
$ ls /dev/disk/by-id/
ata-CT1000MX500SSD4_XXXXXX
Current behavior returns nothing:
$ ls /dev/disk/by-id/
...
3
votes
0
answers
148
views
Does the LVM DM UUID contain any metadata?
For example within the name listed below is there any metadata within the name, eg based on server serial number or date created or such:
dm-uuid-LVM-...
2
votes
1
answer
4k
views
Are disk partition labels or UUIDS stored in the partition area itself or in some other area of the hard disk? [duplicate]
Are disk partition labels or UUIDS stored in the partition area itself or in some other area of the hard disk?
e.g If the dd command is used is used to copy the raw partition image from one partition ...
2
votes
3
answers
334
views
What security problems are caused by public MAC address knowledge?
What types of attacks are made possible or worse by having knowledge of a target computer's MAC address?
I am planning on using a type 1 UUID generator that includes the generating computer's MAC ...
2
votes
2
answers
3k
views
Can HAProxy generate a UUID based unique connection id?
I have an HAProxy load balancer that I would like to use to tag requests with a unique id (X-Unique-ID header) so that I can correlate events between logs in multiple systems.
HAProxy has a feature ...
2
votes
1
answer
1k
views
UUID on copied EBS snapshot
Is the UUID of a copied EBS snapshot different to the original?
In mounting an EBS volume via the fstab in an EC2 instance and if it's a copied snapshot, it appears to be the same UUID?
Is this ...
2
votes
1
answer
400
views
Is it better to generate "UUID" and "TIMESTAMP" within the NodeJS application or using the database built-in functions?
I am writing a TypeScript-NodeJS application and want to handle object ids and created_at TIMESTAMP within the NodeJS application, instead of using MySQL or Cassandra built-in UUID or TIMESTAMP ...
2
votes
1
answer
4k
views
linux + disk apears from lsblk but blkid not give the UUID
we have rhel 7.6 server with sdb and sdc and sdd disks
the machine is physical machines with disk of 1.7T each of them
we notice the sdd disk displayed from lsblk as
lsblk | grep data
sda ...
2
votes
1
answer
2k
views
Why is UUID missing after creating ext4 filesystem on RHEL7 ec2 instance
I'm using Ansible to configure a server. This server is running on AWS Ec2 and I'm attaching to it four EBS drives.
When I run my ansible playbook it will fail about 50% of the time. The failure is ...
2
votes
2
answers
3k
views
Change LUKS UUID (without cryptsetup > 1.2)
According to the cryptsetup changelog (1.2.0):
Allow explicit UUID setting in luksFormat and allow change it later
in luksUUID (--uuid parameter).
My problem is that the current Debian ...
2
votes
0
answers
78
views
duplicate block device and UUID
Today I ran fsck on two partitions of our Ubuntu 16.04 server. Fsck has fixed various problems and afterwards I rebooted the server. After rebooting there were duplicate block device assignments with ...
2
votes
1
answer
2k
views
Is it possible to load new PostgreSQL libraries without restarting the server?
I need support for the uuid library in my Postgres server (a 64-bit Amazon Linux AMI). I've installed the uuid and uuid-pgsql packages. Is it possible to load the library without restarting the ...
1
vote
1
answer
8k
views
How to change grub2 in CentOS/RHEL7 from UUID to old style device?
With CentOS/RHEL 7 there are a couple of changes (compared to CO/RHEL 6).
One of it is the use of grub2 instead of grub.
Per default the OS seems to use a UUID to "find" the boot-device.
Is there an ...
1
vote
2
answers
2k
views
Is disk's UUID a good identifier for disk?
My tool working among 100 disks, some of them may attach or detach from the server during the tool running. I want to use disk's UUID as disk's id, and I got the question: If some disk disk_1 got a ...
1
vote
1
answer
1k
views
zfs does not recognize its own physical disks
I have repeating problem with the zfs pool where zfs stops recognizing its own, properly labeled (or so it appears) physical devices.
Ubuntu 20.04.2 LTS
5.11.0-44-generic #48~20.04.2-Ubuntu SMP Tue ...
1
vote
1
answer
4k
views
I can't mount with mount -a for error wrong fs type, bad option, bad superblock but I can mount manually
I usually use UUID to mount my devices, because I use a lot of external ones and so I control it better.
But when I want to mount partitions formatted with XFS I have problems
Generally this works for ...
1
vote
1
answer
428
views
How do I identify disk partitions from volume/UUID in Ubuntu File Manager (like /dev/sdx)? [closed]
Ubuntu "file manager" lists disk partition as "104 GB volume". "Properties" gives more information, but uses the disks UUID.
"Open on disks" just starts the &...
1
vote
1
answer
559
views
Is there a faster implementation of uuidgen from bash?
I am using a bash script and using the command uuidgen to generate UUIDs. However it is quite slow when invoked in a loop. Are there any alternatives I can invoke directly from bash?
I'm guessing the ...
1
vote
1
answer
1k
views
Proper way to identify member devices in mdadm.conf
My current mdadm.conf looks like:
$ cat /etc/mdadm/mdadm.conf
DEVICE /dev/sdb1 /dev/sdc1
ARRAY /dev/md0 metadata=1.2 spares=0 UUID=357ff7cc:55e78d18:9fc7917b:f5b253f2
MAILADDR [email protected]
Since ...
1
vote
1
answer
2k
views
Why /dev/disk/by-id/ change after a suddenly server power-off?
I'm management a server that in /etc/fstab have references to some partitions using /dev/disk/by-id/DISK_ID-partN.
The server suddenly power-off and DISK_ID part of /dev/disk/by-id/DISK_ID-partN ...
1
vote
1
answer
488
views
SVN Merge two reposiories - what about the UUIDs?
This is my scenario:
Originally had two seperate repositories, I need to merge these into one repository. I don't care too much about the history in these repositories. I created a new repository and ...
1
vote
1
answer
577
views
What replaced vol_id in Debian 9.x "stretch"?
I was reading this link and tried the vol_id command. From my research, it was part of the udev package, and I see it was removed long ago. What replaced vol_id in Debian 9.x "stretch"? As a bonus ...
1
vote
0
answers
521
views
Imaging LVM-based Linux system to new computer: UUIDs change?
We are attempting to use Acronis TrueImage to copy the hard drive from one standalone Red Hat Enterprise Linux 5.5-based computer across to two others as part of a production operation. We are using a ...
1
vote
1
answer
1k
views
Unable to create ramdisk after updating to 2.6.32
I've upgraded one of our servers (debian lenny) from backports. It upgraded the kernel to 2.6.32-trunk-amd64, and switched the disk access to UUID. Everything works fine, however, /dev/ram0 no longer ...
0
votes
2
answers
10k
views
how to know what is disk uuid for md raid1 and hdparm?
ive got md0 (raid 1) array and want to make write cache off on them during system boot (ubuntu 12.04 server).
md0: /dev/sda /dev/sdc
blkid:
/dev/sda: UUID="3e502de5-696d-f4b4-470e-XXX" TYPE="...
0
votes
1
answer
1k
views
Identifying RHEL disk other than by UUID in /etc/fstab for Disaster Recovery from another site
For our disaster recovery setup there is a set of disk which are replicated from our production site to the disaster site. On the production site the RHEL servers have /boot filesystem setup on disks ...
0
votes
2
answers
4k
views
Disks with identical UUIDs
I have three disks that make up a RAID-5. Mdadm repeatedly spat out the third disk (even after replacing it), so I took a closer look.
After checking the cables, I eventually decided to label the ...
0
votes
2
answers
6k
views
After changing a system disk partition, system won't boot, goes into "Dracut Emergency Shell"; how do I get it to boot?
Background
I had a new system that I'd spent a lot of time configuring the software on to perform all manner of services and then discovered the drive was potentially flaky. So I decided to replace ...
0
votes
1
answer
94
views
Almost the same UUID for two different drives
While running the mountvol command on Windows, I see that two of my drives have almost the same UUID, differing only in one byte in the 8th hex character. One of those is not mounted to anything; the ...
0
votes
1
answer
292
views
Send proper UUID over tcp
I have a small ingest TCP server that should accept a device UUID as a first message, which is only 16 bytes. I'd like to test this manually from terminal, but sending a string won't work, since it ...