Re: SAN Disk Allocation

From: Kevin Collins (spamtotrash_at_toomuchfiction.com)
Date: 11/03/04


Date: Wed, 03 Nov 2004 19:38:47 GMT

In article <7960d3ee.0410231649.a5b858f@posting.google.com>, Doug Freyburger
wrote:
> James Taylor wrote:
>>
>> The OS is HP-UX 11 and I've been told that the following LUNs have been
>> allocated:
>> 06C-27949
>> 06D-27949
>>
>> 1) What is the difference between /dev/rdsk and /dev/dsk?
>
> No real difference. Some commands use one, some use the other.
> For example pvcreate used rdsk while pvdisplay uses dsk.

There is a difference - one is block-based (/dev/dsk) and one character-based
(/dev/rdsk - aka "raw disk").

>> 2) What is the unix command or how can I find the disks associated with the
>> 06C-27949 or 06D-27949 in order to use with pvcreate/vgcreate
>
> If the LUNs are from an EMC, look for "inq". From the format
> of the LUN number they appear to be from an HDS/XP and I don't
> remember how to map them on the command line. Do you have the
> ECC GUI available?

You may need to run the 'insf' command to create the device files for the newly
assigned disks. See 'man insf'. If you do so, you'll probably get a big hint
about which devices are the new ones.

Additionally, before doing the 'insf', you might want to run 'ioscan -fnC disk'
and capture the output. More than likely you will see disk devices that have no
associated device files and this will likely be your disks.

>> 3) When I go to /dev/dsk or /dev/rdsk, I see lots of disks. Is there a unix
>> command that tells me which disks are already allocated to a volume group
>> and which are not (are available to be used).
>
> Run pvdisplay against each one in dsk.

That doesn't guarantee anything - its quite possible the LUN in question was
assigned to another system which used it as a PV...

>> 4) Might be the same question as #4.... What is the unix command or how can
>> I the list of newly added disks to a server.
>
> ls -ltr /dev/dsk

Probably not - unless a reboot (which does an insf) or an 'insf' command have
happened.

The bottom line is, this is not a simple task if you have no previous
experience with SAN devices. You should be asking these questions of your more
senior admins and not on a newsgroup. You can quite easily screw up your
existing disks if you don't know what you are doing.

Kevin



Relevant Pages

  • Re: MPIO disks and paths
    ... changeable attributes for the EVA disks. ... The AIX 5.3 System Management Concepts: ... since the path instances typically alternate between the adapters. ... Command View EVA on the SAN Appliance. ...
    (comp.unix.aix)
  • Re: MPIO disks and paths
    ... changeable attributes for the EVA disks. ... Command View EVA on the SAN Appliance. ... My shop will soon be moving from VMS to AIX. ...
    (comp.unix.aix)
  • sata hds, sw raid, crc errors
    ... Disks age is between 2 weeks and 1 year, ... Self-test execution status: ... CR = Command Register [HEX] ... FR = Features Register [HEX] ...
    (comp.os.linux.hardware)
  • Re: Does Linux support powering down SATA drives?
    ... The next command sent to that ... The power state machines of SCSI disks, ... and CD/DVD drives overlap but are not the same. ... support the START STOP UNIT SCSI command or the ...
    (Linux-Kernel)
  • Re: (Q) Add a new Disk - w/o reboot
    ... > man drvconfig ... drvconfig appears to scan the drives that it knows about (that is the same ... command is run automatically after a new driver has been installed (with ... > tells me disks builds /dev. ...
    (comp.unix.solaris)