Operating System - HP-UX
1752489 Members
5856 Online
108788 Solutions
New Discussion

Exact procedure to remove LUN from HP-UX B 11/31

 
Kauser
Advisor

Exact procedure to remove LUN from HP-UX B 11/31

Hi,

Please share me exact steps to remove LUN from HP-UX B.11.31 before it removes from storage end. Thanks.

With Best Regards,

Kauser

1 REPLY 1
Bill Hassell
Honored Contributor

Re: Exact procedure to remove LUN from HP-UX B 11/31

Remove LUN from HP-UX

1. Identify LUN usage in HP-UX.
   For 11.31, there is a new command: diskowner
   It will identify over a dozen uses for a disk LUN:

                none      The path is not owned by any known subsystem.
                lvm       The path is part of an LVM volume group.
                vxvm      The path is part of a VxVM volume group.
                vxfs      The path has a VxFS filesystem on it.
                hfs       The path has a HFS filesystem on it.
                swap      The path is being used as a swap device.
                dump      The path is being used as a dump device.
                asm       The path is part of an Oracle database.
                OCR       The path is a part of Oracle Clusterware and has
                          OCR (Oracle Cluster Registry) file on it.
                Vote      The path is a part of Oracle Clusterware and has
                          Voting disk on it.
                partition The path has EFI partitions on it.
                EFI       The path has EFI boot information on it.
                HPSP      The path is a HP Service partition.

   Example: # diskowner /dev/dsk/c1t2d3
        or: # diskowner /dev/disk/disk2
        or: # diskowner /dev/vg01/lvol3

   There is another usage called raw and could be owned by a database.
   Sybase and Informix commonly use raw disks, Oracle less often.
   Speak to your database manager to identify if a disk is used by a database.

2. Remove the disk from any managed state.
   Run this command: cmviewcl

   If it reports that Sevice Guard cluster is installed, you'll need to check
   with your system administrator to see if the disk is part of a cluster.
   There are multiple steps needed to remove a disk LUN from a cluster.

   For LVM or VxVM, have your system admin verify that the LUN in not part of 
   a volume group. The diskowner command will help identify group management.
   Your system admin can also verify if there are alternate paths for the disk.

   For LVM disks, you can determine if they are active by searching the lvmtab file:
   Use the commands: 
       # strings /etc/lvmtab
       # strings /etc/lvmtab_p

3. Removing the disk device files with rmsf.
   Once the device file has been identifed, ues the command rmsf -a to remove the device.
   You can use the device filename, or the hardware path.

   Example: rmsf -a /dev/rdsk/c1t2d3
            rmsf -k -H 1/0/12/0/0.8.0.255.0.5.0





Bill Hassell, sysadmin