Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Change disk names...
@ 2001-02-21 16:46 Marble Head
  2001-02-21 17:10 ` igor ugolini
  2001-02-21 17:17 ` igor ugolini
  0 siblings, 2 replies; 5+ messages in thread
From: Marble Head @ 2001-02-21 16:46 UTC (permalink / raw)


Suppose I have dsk3, that I want to call dsk10.
Can anybody tell me how to change it?

Obviously, I'm running T64 v5, but if there's a difference between 5.0, 
5.0a, and 5.1, please let me know, as I have interest in learning each way.

Thank you.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change disk names...
  2001-02-21 16:46 Change disk names Marble Head
@ 2001-02-21 17:10 ` igor ugolini
  2001-02-21 21:00   ` Marble Head
  2001-02-21 17:17 ` igor ugolini
  1 sibling, 1 reply; 5+ messages in thread
From: igor ugolini @ 2001-02-21 17:10 UTC (permalink / raw)
  To: Marble Head

Hi,

if you just want to rename the disk, use:

dsfmgr -m dsk3 dsk10

Note that this will not preserve major/minor number.
If you replace a disk, consider using hwmgr -redirect, as it operates at a
lower level.

There are no differences between the mentioned versions.

Cheers, Igor Ugolini

Marble Head wrote:

> Suppose I have dsk3, that I want to call dsk10.
> Can anybody tell me how to change it?
>
> Obviously, I'm running T64 v5, but if there's a difference between 5.0,
> 5.0a, and 5.1, please let me know, as I have interest in learning each way.
>
> Thank you.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change disk names...
  2001-02-21 16:46 Change disk names Marble Head
  2001-02-21 17:10 ` igor ugolini
@ 2001-02-21 17:17 ` igor ugolini
  1 sibling, 0 replies; 5+ messages in thread
From: igor ugolini @ 2001-02-21 17:17 UTC (permalink / raw)
  To: Marble Head

Hi,

If you just want to rename the disk issue:

dsfmgr -m dsk3 dsk10

If you want to replace the disk, you should consider hwmgr -redirect, as it
operates at a lower level.

There are no differences between the mentioned versions.

cheers, igor ugolini

Marble Head wrote:

> Suppose I have dsk3, that I want to call dsk10.
> Can anybody tell me how to change it?
>
> Obviously, I'm running T64 v5, but if there's a difference between 5.0,
> 5.0a, and 5.1, please let me know, as I have interest in learning each way.
>
> Thank you.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change disk names...
  2001-02-21 17:10 ` igor ugolini
@ 2001-02-21 21:00   ` Marble Head
  2001-02-22  9:45     ` igor ugolini
  0 siblings, 1 reply; 5+ messages in thread
From: Marble Head @ 2001-02-21 21:00 UTC (permalink / raw)


>if you just want to rename the disk, use:
>
>dsfmgr -m dsk3 dsk10
>
>Note that this will not preserve major/minor number.
>If you replace a disk, consider using hwmgr -redirect, as it operates at
>a lower level.
>
>There are no differences between the mentioned versions.

My understanding of major/minor numbers comes from linux background.  It 
seems to be different for t64, so I think I'm confused about that.

In linux, major number 2 means floppy bus, minor number 0 means drive0.  So 
the device /dev/fd0 will always have maj/min 2,0.  So in linux, if you 
change the maj/min numbers, you have in fact changed which device that node 
is associated with.

In t64, the meaning seems to be different...  I don't need to have a deep 
understanding of this subject, so I just have a couple of rudimentary 
questions:

Is there any reason I would ever need to preserve major/minor numbers?

Suppose I replace a disk.  (I didn't, but I want to learn.)  Is not all 
access to that disk performed through the device name?  Are some utilities 
dependent on having a specific maj/min number?

Thank you for your help.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Change disk names...
  2001-02-21 21:00   ` Marble Head
@ 2001-02-22  9:45     ` igor ugolini
  0 siblings, 0 replies; 5+ messages in thread
From: igor ugolini @ 2001-02-22  9:45 UTC (permalink / raw)


I also don't have a deap understanding of how it works, but I would discribe it
that way:

The major number indicates the device driver while the minor number indicates
the location (Bus, Target, Lun) of the device. Now you may be confused because
one would think that the minor number is related to a phisical location. But it
isn't like that anymore in V5.x. It only points to a hardwaredb where the
information about the phisical location of the drive. This basicaly means, that
you can change the drive location and preserve the major/minor number. In most
cases this isn't needed, but in some cases it may be... (advfs for example
doesn't care about that and I don't know an example that does).

I never had problems using dsfmgr, but anyway: the right way to replace a disk
is hwmgr.

Hope that helps for the understanding... Cheers, Igor



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-02-22  9:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-21 16:46 Change disk names Marble Head
2001-02-21 17:10 ` igor ugolini
2001-02-21 21:00   ` Marble Head
2001-02-22  9:45     ` igor ugolini
2001-02-21 17:17 ` igor ugolini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox