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
LVM: Extend an existing Volume Group by adding a new disk
Viewed 6673 times since Sat, Jun 2, 2018
AIX: How to set automatic logoff (only for terminals)
Viewed 4052 times since Mon, Jun 11, 2018
Software management in AIX
Viewed 8091 times since Mon, Jun 25, 2018
AIX NFS Version 4 configuration over Kerberos inter-realm setup
Viewed 5677 times since Wed, Jun 27, 2018
HOWTO: Copy a filesystem on AIX
Viewed 3310 times since Mon, May 28, 2018
AIX check the HBA status
Viewed 18818 times since Tue, May 22, 2018
AIX disk queue depth tuning for performance
Viewed 18259 times since Thu, Jan 16, 2020
LVM: Unmirror/Mirror "rootvg" Volume Group
Viewed 4686 times since Mon, May 21, 2018
AIX: Script to get Total Disk Size
Viewed 5170 times since Tue, Jun 12, 2018
AIX, user gets “pwd: The file access permissions do not allow the specified action.”
Viewed 14202 times since Tue, Mar 16, 2021