Sponsored Content
Full Discussion: Remove the disk online
Operating Systems AIX Remove the disk online Post 302772573 by bakunin on Tuesday 26th of February 2013 06:31:24 AM
Old 02-26-2013
The disk is already listed "missing", so it is effectively already removed, as far as the volume group is concerned. Yes, you can remove the disk physically too now. Use normal hot-swap-procedures to do so.

As far as i can tell your LVs are mirrored, so as long as you have mirrored correctly (that is: of the 2 copies of each LP there is only one on the missing disk, not both) you can remirror your VG without any data loss. Use normal disk replacement procedures:
  • Issue "lspv" to list your currently attached disks. Save this information.
  • (Physically) Attach the new disk to the system. Run "cfgmgr" to make the disk known.
  • Use "lspv" to find out which hdiskX-device is the new one. Compare this with the information previously saved in 1.).
  • Issue "replacepv" to replace the disk:
    Code:
    replacepv hdiskold hdisknew

  • Check the "STALE PARTITIONS" count in "lsvg", it will eventually drop to zero, which means the process finished. Then
  • Remove the missing disk from the system configuration:

    Code:
    rmdev -dl hdiskold

    Notice that "replacepv" will already have moved the disk out of the PV.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. Solaris

Need to remove a disk from Veritas

I have a bogus disk that keeps showing up as failed from vxdisk list - - disk hpdg failed was:c2t0d11s2 There isnt any c2 devices on the system: # ls /dev/dsk/c2* /dev/dsk/c2*: No such file or directory # ls /dev/rdsk/c2* /dev/rdsk/c2*: No such file or... (3 Replies)
Discussion started by: kiem
3 Replies

2. AIX

How to remove disk from mirror?

Hello, I've got 2 system disks (hdisk0 and hdisk1) in the mirror (RAID1) on AIX 5.3. Since the hdisk1 makes some troubles, we want to replace it with the new one. How can I disable this hdisk1 disk and prepare the mirror to use the new physical disk? As far as I know, I must remove disk from the... (3 Replies)
Discussion started by: Yac
3 Replies

3. Solaris

Remove os mirrored disk Solaris 10

Hello once again seeking your help, I have a mirrored disk and need to unmirror it to mount it as a new file system (/export) but could not find the correct steps to do it with out affecting the original disk. can anybody point me out on how to get this done. Thanks!! (3 Replies)
Discussion started by: AQG
3 Replies

4. Solaris

Unable to bring a disk from error to online state.

Hello experts. I am using Solaris 10(2005) on intel machine. I have installed Veritas Volume manager 5.0. I am unable to bring a disk error to online state. I would like to bring that disk to CDS format. Commands i used and output are.... #vxdisk list DEVICE TYPE ... (11 Replies)
Discussion started by: younus_syed
11 Replies

5. Solaris

Cannot remove and replace failed disk

-bash-3.00# zpool detach zonepool c1t1d0 cannot detach c1t1d0: only applicable to mirror and replacing vdevs -bash-3.00# zpool remove zonepool c1t1d0 cannot remove c1t1d0: only inactive hot spares, cache, top-level, or log devices can be removed -bash-3.00# zpool offline zonepool c1t1d0... (3 Replies)
Discussion started by: LittleLebowski
3 Replies

6. AIX

hacmp - is it possible to remove a disk heartbeat network from an online cluster?

Hi I'm a little rusty with HACMP, but wanted to find out if it is possible to remove a disk heartbeat network from a running HACMP cluster. Reason is, I need to migrate all the SAN disk, so the current heartbeat disk will be disappearing. Ideally, I'd like to avoid taking the cluster down to... (2 Replies)
Discussion started by: cmcbugg
2 Replies

7. HP-UX

Remove faulty disk LV from VG

Hi, Have mirrored the primary disk to 3 . Server and OS: # uname -a HP-UX pdwp1s B.11.11 U 9000/800 118434630 unlimited-user license # model 9000/800/L3000-7x # strings /etc/lvmtab /dev/vg00 +F@< /dev/dsk/c1t2d0 /dev/dsk/c2t2d0 /dev/dsk/c2t0d0 But now I have only 1 disk... (5 Replies)
Discussion started by: Shirishlnx
5 Replies

8. Solaris

Need to remove a disk from zfs pool

I accidently added a disk in different zpool instead of pool, where I want. root@prtdrd21:/# zpool status cvfdb2_app_pool pool: cvfdb2_app_pool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM cvfdb2_app_pool ONLINE 0 0 0... (1 Reply)
Discussion started by: solaris_1977
1 Replies

9. Solaris

Cannot remove disk added to zpool

I added a disk to a zpool using "zpool add diskname" My intention was mirror a zpool disk that no mirror; that is a zpool with only one disk. I did not issue the right command. Now, the disk has been added successfully but I cannot remove nor detach it as Solaris 11 thinks it has data on it... (14 Replies)
Discussion started by: LittleLebowski
14 Replies

10. Solaris

How to remove a LUN in "Online Busy" state?

Hi all, I have a LUN that is in "Online Busy" when I issue the dev_gestate subcommand of luxadm: root@es088wb6:~# luxadm -v -e dev_getstate /dev/rdsk/c21t50050763090887FEd4s2 phys path = "/devices/pci@6c0/pci@1/pci@0/pci@4/SUNW,qlc@0/fp@0,0/ssd@w50050763090887fe,4:c,raw" ... (5 Replies)
Discussion started by: ludiegu
5 Replies
vximportdg(1M)															    vximportdg(1M)

NAME
vximportdg - import a disk group into the Veritas Volume Manager configuration SYNOPSIS
vximportdg daname new_dgname DESCRIPTION
The vximportdg utility performs a temporary import of the disk group contained on the disk device specified by daname to the disk group specified by new_dgname. As the persistent disk group information is not changed within the private partition of the affected disk, the import is only valid for the duration of the bootload or until a vxdg deport is performed. ARGUMENTS
daname Specifies the device name (disk access name) of one of the member disks of the disk group to be imported. The other members are imported automatically. new_dgname Specifies the disk group to be imported. USAGE
One reason to use the vximportdg utility is to import a second generation of the rootdg disk group so that its objects are available for use while a system is running on a different rootdg. To prevent volumes on the second generation rootdg from having the same device minor numbers as volumes (such as rootvol) on the active rootdg, the importation assigns temporary non-conflicting device minor numbers. If this occurs, vximportdg outputs warning messages detailing the mapping of the minor numbers. SEE ALSO
vxdg(1M) VxVM 5.0.31.1 24 Mar 2008 vximportdg(1M)
All times are GMT -4. The time now is 09:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy