AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  disk available

    Posted 08/23/07 10:55 AM

    Originally posted by: SystemAdmin


    Hi,

    Is there a command that show me how many unused disks are available on my AIX server?

    I want to use it in a script. thanks
    #AIX-Forum


  • 2.  Re: disk available

    Posted 08/23/07 11:23 AM

    Originally posted by: SystemAdmin


    lspv
    #AIX-Forum


  • 3.  Re: disk available

    Posted 08/24/07 04:53 AM

    Originally posted by: Sprellster


    That really depends on what you mean by "unused". If you are referenceing unused as a disk which doesn't belong to any volume group than lspv would be the correct one.

    But since there is the possibility that a disk has been assigned to a volume group and therefore available to usage, but has not been used. You can in that issue use "lspv -l hdiskX" and see if there are any logical partitions on that physical disk.

    Further more if you are referencing free disks as free space in volume group than lsvg is the correct command.
    #AIX-Forum