System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing of device files !!

Ahmed Saleem
Advisor

Changing of device files !!

Hi All,
I want to change the order of device files for HDDs. Now they are physically shown in this order ...
/dev/dsk/disk14
/dev/dsk/disk6
/dev/dsk/disk7
/dev/dsk/disk9
/dev/dsk/disk0
and i want them to b in this order
/dev/dsk/disk0
/dev/dsk/disk1
/dev/dsk/disk2
/dev/dsk/disk3
/dev/dsk/disk4
so how is it possible ...
kindly forward me the whole procedure ....
6 REPLIES
Hein van den Heuvel
Honored Contributor

Re: Changing of device files !!

dsfmgr -e /dev/dsk/disk14 /dev/dsk/disk0
dsfmgr -e /dev/dsk/disk6 /dev/dsk/disk1
:

See #man dsfmgr

Sometimes -e is handy, but not needed here.

http://btrcx1.cip.uni-bayreuth.de/cgi-bin/manpages/dsfmgr/8

Hein.
Hein van den Heuvel
Honored Contributor

Re: Changing of device files !!

oops, you do need -e, or change the order otherwise you run into conflict for disk0


dsfmgr -e /dev/dsk/disk6 /dev/dsk/disk1
dsfmgr -e /dev/dsk/disk7 /dev/dsk/disk2
dsfmgr -e /dev/dsk/disk9 /dev/dsk/disk3
dsfmgr -e /dev/dsk/disk0 /dev/dsk/disk4
dsfmgr -e /dev/dsk/disk14 /dev/dsk/disk0

Hein.

Vladimir Fabecic
Honored Contributor

Re: Changing of device files !!

DO NOT FORGET that you also have to change links in /etc/fdmns (if using advfs) or edit /etc/fstab if using UFS.
In vino veritas, in VMS cluster
Ivan Ferreira
Honored Contributor

Re: Changing of device files !!

This could be possible as methioned above, you can use dsfmgr -m to "move" one device name to another, and dsfmgr -e to "exchange" between two.

But i'm wondering why are you doing that? You should start to use to see unsorted output in the results of commands. (The sort command could be handy)
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Hein van den Heuvel
Honored Contributor

Re: Changing of device files !!

Argh... i got my options mixed up.
The command I intended to show was -m,
and the -e is sometimes handy.


Oh well.

Hein.
Ahmed Saleem
Advisor

Re: Changing of device files !!

Thanks for all ur support ...