AIX: Remove existing disk

AIX: Remove existing disk

# Tested on AIX 6.1

# Once disk is not used anymore (not assigned to a volume group or oracle ASM device, for
# instance), we can remove it from system like this


# Check before

lspv
      hdisk0          00c6b1c54670e768                    datavg          active
      hdisk1          00c6b1c531e590ce                    rootvg          active
      hdisk2          none                                None
      hdisk5          none                                None
      hdisk7          none                                None
      hdisk3          none                                None
      hdisk4          00c6b1c545e70939                    rootvg          active


rmdev -dl hdisk7


# Check after

lspv
      hdisk0          00c6b1c54670e768                    datavg          active
      hdisk1          00c6b1c531e590ce                    rootvg          active
      hdisk2          none                                None
      hdisk5          none                                None
      hdisk3          none                                None
      hdisk4          00c6b1c545e70939                    rootvg          active

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Script HW/SW AIX
Viewed 9318 times since Mon, Jun 4, 2018
AIX Changing ’defined’ or ’missing’ hard disk states to ’Available’ in IBM Smart Analytics System for AIX environment
Viewed 9897 times since Wed, May 22, 2019
AIX, Installation, NIM↑ Creating an LPP source and SPOT in NIM
Viewed 15166 times since Fri, Apr 19, 2019
AIX NFS Version 4 configuration over Kerberos inter-realm setup
Viewed 4216 times since Wed, Jun 27, 2018
Awesome Command to show top 15 processes using memory on AIX
Viewed 24066 times since Thu, Nov 29, 2018
Migrating AIX User Environments
Viewed 2327 times since Wed, May 30, 2018
Check connection (rsh or nimsh) between NIM server and LPAR
Viewed 10814 times since Thu, Feb 21, 2019
Monitor logfiles and command output on AIX using multitail.
Viewed 2502 times since Thu, Feb 21, 2019
Script to make mksysb backup from NIM to LPAR
Viewed 3774 times since Thu, Feb 21, 2019
Topics: AIX, Networking, System Admin
Viewed 11705 times since Fri, Apr 19, 2019