Remove the disk online


 
Thread Tools Search this Thread
Operating Systems AIX Remove the disk online
# 1  
Old 02-26-2013
IBM Remove the disk online

Hi

I have one of the disk missing in my NIMVG. My doubt is can I remove this hdisk2 online ? few of the file systems seems to be spread over 7 PV's. that's why i'm worried. Can someone suggest if I can replace this disk online. Also how to check if there is some data present in hdisk2 alone which is not mirrored to the other disks.

Code:
ibmaixnim:root:/>lsvg -l NIMVG
NIMVG:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
loglv00             jfs2log    1       2       2    open/stale    N/A
fslv00              jfs2       441     882     7    open/stale    /export
fslv01              jfs2       186     372     7    open/stale    /export/Software
imagevol            jfs2       367     367     1    open/syncd    /export/images


ibmaixnim:root:/>lsvg -p NIMVG
NIMVG:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk2            missing           546         0           00..00..00..00..00
hdisk3            active            546         0           00..00..00..00..00
hdisk15           active            399         8           00..00..00..00..08
hdisk21           active            23          0           00..00..00..00..00
hdisk22           active            23          0           00..00..00..00..00
hdisk23           active            23          0           00..00..00..00..00
hdisk24           active            25          0           00..00..00..00..00
hdisk25           active            23          0           00..00..00..00..00
hdisk26           active            23          0           00..00..00..00..00


ibmaixnim:root:/>lspv -l hdisk2
hdisk2:
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
fslv00                401     401     110..108..109..73..01 /export
fslv01                144     144     00..00..00..36..108   /export/Software
loglv00               1       1       00..01..00..00..00    N/A

ibmaixnim:root:/>lsdev -Cc disk | grep -i hdisk2
hdisk2  Available 05-08-00 SAS Disk Drive

# 2  
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
# 3  
Old 02-26-2013
Quote:
Originally Posted by newtoaixos
Also how to check if there is some data present in hdisk2 alone which is not mirrored to the other disks.
Code:
lsvg -M NIMVG | grep hdisk2

Code:
-M
Lists the following fields for each logical volume on the physical volume:
PVname:PPnum [LVname: LPnum [:Copynum] [PPstate]]

If you mirrored correctly each LV should have only one Mirror number (Copynum) on this hdisk.

Maybe You can use the following command - I could not test it here:
Each LV should be output only once.
Code:
lsvg -M NIMVG | grep -w hdisk2 | awk '{print $2}' | awk -F: '{print $1":"$3}' | sort -du

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question