udev device naming

Prasad Joshi prasadjoshi124 at gmail.com
Thu Nov 29 10:04:01 EST 2012


On Thu, Nov 29, 2012 at 11:43 AM, Mulyadi Santosa
<mulyadi.santosa at gmail.com> wrote:
> Hi...
>
> On Thu, Nov 29, 2012 at 9:04 AM, Prasad Joshi <prasadjoshi124 at gmail.com> wrote:
>> Hello All,
>>
>> I have a virtual machine to which I dynamically attach/detach disk
>> devices. On this VM the boot device is always '/dev/sda'.
>>
>> When a attach and detach different disk continuously to this virtual
>> machine, every-time, the same device file '/deb/sdb' is created. Is
>> there anyway I can tell udev subsystem to not to reuse the previously
>> used device names?
>
> IMHO that's understandable since the guest think the same disk is
> reinserted back.
>
> So, the key here is to use your virtual machine somehow to pass
> information to the guest that this is another disk.
>
> What virtual machine do you use anyway?

Hello Mulyadi,

I am using ESX and sometimes I have to attach disks dynamically and
remove them.

I have caching solution installed on my machine, if I ever cache the
attached disk, remove it, and attach a different disk, this newly
added disk might accidentally be treated as original disk and might be
cached incorrectly. Therefore, I wanted to ensure that every time a
disk is attached it is named differently.

Thanks and Warm Regards,
Prasad

>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list