Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Exact procedure to remove LUN from HP-UX B 11/31
System Administration
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-25-2020 06:43 AM
12-25-2020 06:43 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-26-2020 07:54 PM
12-26-2020 07:54 PM
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP