AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Format multiple SSA Devices with a script

    Posted Wed August 16, 2006 10:56 AM

    Originally posted by: SystemAdmin


    Hi,

    does anyone know or can post a script that formats multiple SSA Disk Drives togerther? So that i dont have to format them step by step via the cl or the "diag" command.??

    will be very happy if some can help.


  • 2.  Re: Format multiple SSA Devices with a script

    Posted Thu August 17, 2006 09:42 PM

    Originally posted by: SystemAdmin


    you can use the ssa_format command. it lives in /usr/lpp/diagnostics/bin


  • 3.  Re: Format multiple SSA Devices with a script

    Posted Wed August 30, 2006 04:46 AM

    Originally posted by: SystemAdmin


    Hi,

    thanks for answer. But how can i use this command to format multiple devices at once.
    Thankls for help


  • 4.  Re: Format multiple SSA Devices with a script

    Posted Wed October 18, 2006 05:56 AM

    Originally posted by: andycor


    This script will format all the SSA disks configured in a system:

    #!/bin/ksh
    for i in `lsdev -Cc pdisk -r name`
    do
    echo $i
    /usr/lpp/diagnostics/bin/ssa_format -l $i
    done
    The ssa_format command don't wait until finalize, so the format is performed to all the disks in parallel way.

    Regards.


  • 5.  Re: Format multiple SSA Devices with a script

    Posted Wed October 18, 2006 10:36 AM

    Originally posted by: SystemAdmin


    Thank you very much

    nice one.



  • 6.  Re: Format multiple SSA Devices with a script

    Posted Wed October 25, 2006 06:03 AM

    Originally posted by: andycor


    You could see the progress of the disks formating with the following script:

    #!/bin/ksh
    for i in `lsdev -Cc pdisk -r name`
    do
    echo `echo $i|awk -Fk '{print $2}'` $i `/usr/lpp/diagnostics/bin/ssa_progress -l $i`
    done

    Regards,
    Andres Cordoba.