[SOLVED] Duplicate uuid problem


Recommended Posts

Guys, I have removed a drive from my main server having rebuilt to a larger disk. I now wanted to insert this drive into my backup server, complete with contents, as a "backup".  Done this many a time by just new config'ing after inserting said drive. This time I gat the dreaded 'unmountable no file system' so stopped array, removed drive, restarted, new configged again to get back to where I was and plugged drive in via UD. It mounted ok, xfs, contents visible. Unplugged for a bit of thinking time. Tried again and am now getting 'duplicate uuid' message. The drive only contains the base files which were rebuilt on my main server but I just need to understand why the procedure didn't work this time around. Would be nice to just slot it in again and see it's filestore as per the three other drives I've previously moved in this manner. Any ideas? Will regenerating it's uuid affect the disk contents? I'm assuming that the duplicate uuid issue is as a result of plugging/replugging the drive in at some stage which it didnt quite like so once i get over that then the issue of just why i got an 'unmountable fs system' and supposed drive needing a reformat (i didnt !) will still be there?

Edited by superloopy1
Link to comment

Just tried a powerdown/restart and plugged drive in again via usb ...

 

 

'Feb 1 16:30:25 xtower kernel: sd 8:0:0:0: [sdl] Attached SCSI disk
Feb 1 16:30:36 xtower unassigned.devices: Adding disk '/dev/sdl1'...
Feb 1 16:30:36 xtower unassigned.devices: Mount drive command: /sbin/mount -t xfs -o rw,noatime,nodiratime '/dev/sdl1' '/mnt/disks/ST8000AS0002-1NA17Z_Z84127RD'
Feb 1 16:30:36 xtower kernel: XFS (sdl1): Filesystem has duplicate UUID 45f85bea-fde1-4ea2-bdf1-f5f56cf3f838 - can't mount
Feb 1 16:30:36 xtower unassigned.devices: Mount of '/dev/sdl1' failed. Error message: mount: /mnt/disks/ST8000AS0002-1NA17Z_Z84127RD: wrong fs type, bad option, bad superblock on /dev/sdl1, missing codepage or helper program, or other error.

 

So, seems that my current uuid is being bothersome ;>)

Screenshot_2020-02-01 xtower Main.png

Edited by superloopy1
Link to comment

This disk hasnt been rebuilt though. I removed it from my first server and allowed the contents to be rebuilt onto a larger drive before attempting to install this original drive to my second server. Just whack it in, new-config, rebuild parity is how the previous three drives i've 'moved' have been done without any probs. This one came up 'no filesystem' for some reason. I backed out, took it out and then mounted via UD externally. This showed disk and fs was ok but subsequently came up with duplicate uuid. So, if i change uuid will i corrupt any data???

 

Still dont understand how uuid can be a duplicate, these are two separate systems its been mounted onto.

Edited by superloopy1
Link to comment

Have tried that, in maintenance mode xfs_repair /dev/sdk1 -L (first run said to recreate log) which ended ok.

 

Then back to retry mount, again failed with duplicate uuid, then tried to recreate uuid from 'settings', seemed ok.

 

Back to second attempt to mount and still failing (timing out still) with same error messages as before, duplicate uid, bad superblock et al.

 

Any clever code to try and get around this?

 

Looks like a cmd line to change uuid might be needed?

 

Still sitting, outside of array, wont mount.

Edited by superloopy1
Link to comment

Just got my head around it now ... found 'uuidgen' was needed. Applied manually and new uuid has now stuck, drive mounted externally ok so hopefully thats the end of it.  Thanks for the help, as you can see i'm no linux guy but am learning, mainly by stuff breaking, every day. I'll make a note of this little episode. Fortunately it was just a copy of my data and not the real thing!! Cheers!!

Link to comment
  • superloopy1 changed the title to [SOLVED] Duplicate uuid problem

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.