# Changed the pm-names to legacy names is it good?

**URL:** <https://forums.linbit.com/t/changed-the-pm-names-to-legacy-names-is-it-good/732>\
**Category:** Proxmox VE\
**Tags:** linstor\
**Created:** [April 7, 2025, 7:45am UTC](https://forums.linbit.com/t/changed-the-pm-names-to-legacy-names-is-it-good/732 "2025-04-07T07:45:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![youzersef](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/youzersef/32/95_2.png) [@youzersef](https://forums.linbit.com/u/youzersef)\
**Post date:** [April 7, 2025, 7:45am UTC](https://forums.linbit.com/t/changed-the-pm-names-to-legacy-names-is-it-good/732/1 "2025-04-07T07:45:07Z")

</div>

Hello everybody,

the pm-uuid names make me confused. That is why i have changed the the following block in:  
`vim /usr/share/perl5/PVE/Storage/Custom/LINSTORPlugin.pm`

From

```auto
} else {
    for ( my $i = 1 ; $i < 100 ; $i++ ) {
        my $tn = "pm-" . lc substr( UUID::uuid(), 0, 8 );
        if ( !exists( $resources->{$tn} ) ) {
            $linstor_name = $tn;
            $proxmox_name = "${tn}_${vmid}";
            last;
        }
    }
}

```

To

```auto
} else {
    for (my $i = 1; $i < 100; $i++) {
        my $diskname = "vm-${vmid}-disk-$i";
        if (!exists($resources->{$diskname})) {
            $linstor_name = $diskname;
            $proxmox_name = $diskname;
            last;
        }
    }
}

```

Is it good or bad way? Is there any consequences? Is there better way?

for the new updates am planning to keep the custom-changes somehow

Best Regards  
youzersef

---

<div class="post-metadata">

**Author:** ![rck](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rck](https://forums.linbit.com/u/rck)\
**Post date:** [April 7, 2025, 8:12am UTC](https://forums.linbit.com/t/changed-the-pm-names-to-legacy-names-is-it-good/732/2 "2025-04-07T08:12:32Z")

</div>

I mean I did not change the naming because I woke up and had a funny day, obviously there is a reason that the naming is how it is 🙂 and the reason is moving disks between VMs. all there is to say about that is written down here: [allow reassigning disks · LINBIT/linstor-proxmox@7027916 · GitHub](https://github.com/LINBIT/linstor-proxmox/commit/7027916c565ac8f5fae4937cf2c5d743726bd3b4)

consequence? the feature will not work and you have to maintain your patch, besides that nothing I could think of right now. it is open source: good luck

---

<div class="post-metadata">

**Author:** ![youzersef](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/youzersef/32/95_2.png) [@youzersef](https://forums.linbit.com/u/youzersef)\
**Post date:** [April 7, 2025, 9:30am UTC](https://forums.linbit.com/t/changed-the-pm-names-to-legacy-names-is-it-good/732/3 "2025-04-07T09:30:43Z")

</div>

Hello rck,

thank you. I missed to read this [allow reassigning disks · LINBIT/linstor-proxmox@7027916 · GitHub](https://github.com/LINBIT/linstor-proxmox/commit/7027916c565ac8f5fae4937cf2c5d743726bd3b4)

i did not try to change it, because i do not like this version of the disk name. My problem is that i want to shipp the snapshots to s3 storage. Just in case, if i want to restore a snapshot then i should to figure out which VM-Disk belongs to which VM.. and this will take to much time…

maybe i am thinking wrong. I am glade to hear advises 🙂

Best Regards  
youzersef
