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
Changing Ethernet Media Speed for AIX
Viewed 3127 times since Tue, Apr 16, 2019
Authenticate AIX using MS DC’s kerberos servers (Active Directory)
Viewed 2016 times since Thu, Feb 21, 2019
This document discusses a new feature implemented for JFS2 filesystems to prevent simultaneous mounting.
Viewed 2645 times since Sat, Jun 1, 2019
List AIX File Systems the Easy Way With the lsvgfs Command
Viewed 1827 times since Thu, Sep 20, 2018
Undocumented AIX command lquerypv
Viewed 3372 times since Mon, Jul 16, 2018
AIX NTP Client configuration
Viewed 11575 times since Tue, Jul 17, 2018
LVM: Display basic information about Physical Volumes, Volume Groups and Logical Volumes
Viewed 2733 times since Sun, Jun 3, 2018
AIX Creating EtherChannel Devices from Command Line
Viewed 3171 times since Mon, Jun 3, 2019
AIX, Monitoring, System Admin↑ NMON recordings
Viewed 2808 times since Fri, Apr 19, 2019
R2dump debug tool
Viewed 1849 times since Tue, Sep 8, 2020