Sponsored Content
Operating Systems AIX How to reclaim hard disks and IP's in AIX? Post 302989426 by rbatte1 on Thursday 12th of January 2017 09:35:49 AM
Old 01-12-2017
Hello Joseph Sabo, indeed Welcome! Smilie

AIX is good because you cannot remove anything that the OS believes is in use so it protects itself. You can detach them at the SAN end, but that will cause hardware alerts.

Are you relinquishing all IP addresses? Is this part of a cluster perhaps?

I presume you mean that you want to reclaim the disks/LUNs for use on other servers/partitions so:
  • You cannot remove these safely from AIX without them being removed from the relevant volume group.
  • You cannot remove them from the volume group unless they are empty (no logical volumes)
  • You cannot remove the logical volumes if they are in use as either raw devices (such as for a database) or as formatted and mounted filesystems.
  • You cannot unmount filesystems if they are in use, i.e. open files or any process with their current directory within the tree.

Before going through the process to unwind them, will anything be left of the server at the end of this or is it being turned off? If so, shut it down and use the SAN to detach/dis-associate the LUNs from the client AIX node (or whatever terminology your SAN uses) To reuse the server at a later date, you would be best to re-install over the root volume group so that it doesn't try to use devices that have been removed or use IP addresses that may have been reallocated elsewhere.


If you need to do a partial removal, it would be helpful to know what we're dealing with. Can you share the output (pasted in CODE tags) from the following:-
Code:
oslevel -s
df
lsvg
lsvg -p each volume group in turn
lsvg -l each volume group in turn
lspv


Thanks, in advance,
Robin

Last edited by rbatte1; 01-12-2017 at 10:36 AM.. Reason: Added welcome
 

8 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

External Lacie USB hard disks

I'm trying to mount a USB Lacie external hardrive in my Linux system but am having trouble doing so, I'm also having trouble mounting my USB ZIP 250 drive. It is totally me being stupid, but I'm new to unix and am having a few teathing problems. the command I'm using is the following mount... (4 Replies)
Discussion started by: electrode101
4 Replies

2. UNIX for Advanced & Expert Users

Solaris GRUB troubled with dual hard disks

I have the following system: - DELL Dimension 8300 - Pentium IV @ 2.66GHz - BIOS Revision A07 - 1.5GB RAM - 2 Hard Disks (Master 120GB, Slave 80GB), I guess it's IDE I had WinXP on the master disk (hd0) and recently installed Solaris 10 1/06 on the slave disk (hd1). The NTLDR is in MBR... (0 Replies)
Discussion started by: Hawk
0 Replies

3. Solaris

Hard disks in solaris

I need to insert a new hard disk into a Sun Fire v210 machine. The (only) internal disk which is already in the machine is part number XRA-SC1CB-73G10K (DISK DRIVE ASSY. 73GB, 10K RPM, with SPUD BRACKET). I also have nearly endless access to IBM hard disks at extremely low prices and would there... (2 Replies)
Discussion started by: sprellari
2 Replies

4. Solaris

Get onyl local hard disks

How can I get only the local hard disks in Solaris? I've tried iostat -x, iostat -E, etc, but it shows the cdroms, dvds, external storage... I want only the local physical hard disks. Thanks. (2 Replies)
Discussion started by: psimoes79
2 Replies

5. AIX

Mount points to hard disks

Hi I am oracle DBA and sometimes need to see on which disks oracle data files are residing . How can we check that . The file system is jfs on aix 5.2.0.0 The method is use is to use mount |grep oracle_dir_name or lsfs mount_point_name command to see what /dev/logical_volume_name is mounted... (1 Reply)
Discussion started by: clifford
1 Replies

6. Solaris

Hard/Transfer errors in disks

Could you please explain us what are these transport/hard errors... when i ran the following command, iostat -E | grep Errors i got the following: sd240 Soft Errors: 37 Hard Errors: 1144 Transport Errors: 0 sd578 Soft Errors: 0 Hard Errors: 890 Transport Errors: 0 Please... (5 Replies)
Discussion started by: sundar3350
5 Replies

7. Shell Programming and Scripting

How to get number of attached hard disks in HP-UX

how do i get the number of attached hard disks in HP-UX (1 Reply)
Discussion started by: achak01
1 Replies

8. Solaris

Determining number of hard disks in the system

Hello to all, what is the command in Solaris/Unix which I can use to determine how many hard disks exist in the system? I have tried with different command such as df -lk and similar but cannot know for sure how many actual disks are installed. Commands like # fdisk -l | grep Disk and #... (14 Replies)
Discussion started by: Mick
14 Replies
VGREDUCE(8)						      System Manager's Manual						       VGREDUCE(8)

NAME
       vgreduce - reduce a volume group

SYNOPSIS
       vgreduce  [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [Physi-
       calVolumePath...]

DESCRIPTION
       vgreduce allows you to remove one or more unused physical volumes from a volume group.

OPTIONS
       See lvm for common options.

       -a, --all
	      Removes all empty physical volumes if none are given on command line.

       --removemissing
	      Removes all missing physical volumes from the volume group, if there are no logical volumes allocated on those. This resumes  normal
	      operation of the volume group (new logical volumes may again be created, changed and so on).

	      If this is not possible (there are logical volumes referencing the missing physical volumes) and you cannot or do not want to remove
	      them manually, you can run this option with --force to have vgreduce remove any partial LVs.

	      Any logical volumes and dependent snapshots that were partly on the missing disks get removed completely. This includes those  parts
	      that lie on disks that are still present.

	      If your logical volumes spanned several disks including the ones that are lost, you might want to try to salvage data first by acti-
	      vating your logical volumes with --partial as described in lvm (8).

SEE ALSO
       lvm(8), vgextend(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					       VGREDUCE(8)
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy