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
Part 3, Tuning swap space settings AIX7
Viewed 9008 times since Wed, Jun 19, 2019
Unlock User ID in IBM AIX
Viewed 15177 times since Mon, May 28, 2018
Topics: AIX, System Admin↑ Export and import PuTTY sessions
Viewed 3019 times since Fri, Apr 19, 2019
Reconfigure RSCT ID to fix DLPAR issues on cloned AIX systems
Viewed 13817 times since Thu, Feb 21, 2019
Script to make mksysb backup from NIM to LPAR
Viewed 3639 times since Thu, Feb 21, 2019
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 3821 times since Fri, Jun 8, 2018
Recovery AIX system when hang on boot (554 code error).
Viewed 16156 times since Thu, Feb 21, 2019
Create volume groups on AIX - Normal Big Scalable
Viewed 6731 times since Thu, Feb 21, 2019
AIX: Script to create a file with commands to remove missing & failed paths
Viewed 3197 times since Tue, Jun 12, 2018
n a perfect world....rootvg would always reside on hdisk0
Viewed 2270 times since Thu, Jun 6, 2019