Re-numbering disks - Aix

This is a discussion on Re-numbering disks - Aix ; Is there a procedure for getting disk names consecutive? My device special file names are non consecutive, and I would like them to go from 0 to 20. Currently, this is how it looks... devstar # lsdev -Cc disk hdisk0 ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Re-numbering disks

  1. Re-numbering disks

    Is there a procedure for getting disk names consecutive?

    My device special file names are non consecutive, and I would like
    them to go from 0 to 20. Currently, this is how it looks...

    devstar # lsdev -Cc disk
    hdisk0 Available 03-08-00-5,0 16 Bit LVD SCSI Disk Drive
    hdisk1 Available 03-08-00-8,0 16 Bit LVD SCSI Disk Drive
    hdisk3 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk4 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk11 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk12 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk26 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk27 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk28 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk29 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk30 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk31 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk32 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk33 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk35 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk36 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk37 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk38 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk39 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk40 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    hdisk41 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk

    devstar # lsdev -Cc disk | wc -l
    21

    I'd like them to go 0-20.

    Thanks for the help.


  2. Re: Re-numbering disks

    Try http://www-1.ibm.com/support/docview...d=isg3T1000185
    for a simple script that will renumber your hdisks.


    On Wed, 11 Jul 2007, glazier@gmail.com wrote:

    > Is there a procedure for getting disk names consecutive?
    >
    > My device special file names are non consecutive, and I would like
    > them to go from 0 to 20. Currently, this is how it looks...
    >
    > devstar # lsdev -Cc disk
    > hdisk0 Available 03-08-00-5,0 16 Bit LVD SCSI Disk Drive
    > hdisk1 Available 03-08-00-8,0 16 Bit LVD SCSI Disk Drive
    > hdisk3 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk4 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk11 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk12 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk26 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk27 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk28 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk29 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk30 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk31 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk32 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk33 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk35 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk36 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk37 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk38 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk39 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk40 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > hdisk41 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    >
    > devstar # lsdev -Cc disk | wc -l
    > 21
    >
    > I'd like them to go 0-20.
    >
    > Thanks for the help.
    >
    >


  3. Re: Re-numbering disks

    On Jul 11, 7:18 pm, glaz...@gmail.com wrote:
    > Is there a procedure for getting disk names consecutive?


    In case hdisk0 and hdisk1 are used for the rootvg and the other disk
    are currently no in use

    $ lspv | grep "^hdisk[0-9]" | awk '{ print $1 }' |\
    xargs -n1 -I {} rmdev -dl {}

    $ cfgmgr
    or
    $ ( lscfg -l scsi* ; lscfg -l fscsi* ) |\
    awk '{ print $1 }' | xargs -n1 -I{} cfgmgr -l {}

    hth
    Hajo


  4. Re: Re-numbering disks

    Thanks for the help. Would running such scripts delete data? I am
    not worried about the rootvg disks (0 and 1). All the others are part
    of violume groups.

    On Jul 11, 11:36 am, Ron Hosler wrote:
    > Tryhttp://www-1.ibm.com/support/docview.wss?uid=isg3T1000185
    > for a simple script that will renumber your hdisks.
    >
    >
    >
    > On Wed, 11 Jul 2007, glaz...@gmail.com wrote:
    > > Is there a procedure for getting disk names consecutive?

    >
    > > My device special file names are non consecutive, and I would like
    > > them to go from 0 to 20. Currently, this is how it looks...

    >
    > > devstar # lsdev -Cc disk
    > > hdisk0 Available 03-08-00-5,0 16 Bit LVD SCSI Disk Drive
    > > hdisk1 Available 03-08-00-8,0 16 Bit LVD SCSI Disk Drive
    > > hdisk3 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk4 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk11 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk12 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk26 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk27 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk28 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk29 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk30 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk31 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk32 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk33 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk35 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk36 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk37 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk38 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk39 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk40 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > hdisk41 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk

    >
    > > devstar # lsdev -Cc disk | wc -l
    > > 21

    >
    > > I'd like them to go 0-20.

    >
    > > Thanks for the help.- Hide quoted text -

    >
    > - Show quoted text -




  5. Re: Re-numbering disks

    On Jul 11, 3:54 pm, glaz...@gmail.com wrote:
    > Thanks for the help. Would running such scripts delete data? I am
    > not worried about the rootvg disks (0 and 1). All the others are part
    > of violume groups.


    no, you're simply removing the disk definitions from the ODM and
    readding them, it won't affect any data on the disk. You will however
    need to umount any filesystems and vary off the volume groups before
    you can do the rmdev's against them.

    >
    > On Jul 11, 11:36 am, Ron Hosler wrote:
    >
    > > Tryhttp://www-1.ibm.com/support/docview.wss?uid=isg3T1000185
    > > for a simple script that will renumber your hdisks.

    >
    > > On Wed, 11 Jul 2007, glaz...@gmail.com wrote:
    > > > Is there a procedure for getting disk names consecutive?

    >
    > > > My device special file names are non consecutive, and I would like
    > > > them to go from 0 to 20. Currently, this is how it looks...

    >
    > > > devstar # lsdev -Cc disk
    > > > hdisk0 Available 03-08-00-5,0 16 Bit LVD SCSI Disk Drive
    > > > hdisk1 Available 03-08-00-8,0 16 Bit LVD SCSI Disk Drive
    > > > hdisk3 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk4 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk11 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk12 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk26 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk27 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk28 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk29 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk30 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk31 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk32 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk33 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk35 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk36 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk37 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk38 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk39 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk40 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk
    > > > hdisk41 Available 00-08-02 MPIO HP HSV111 Fibre Channel disk

    >
    > > > devstar # lsdev -Cc disk | wc -l
    > > > 21

    >
    > > > I'd like them to go 0-20.

    >
    > > > Thanks for the help.- Hide quoted text -

    >
    > > - Show quoted text -




+ Reply to Thread