AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Hard disk is not removing

    Posted Mon July 28, 2008 10:28 AM

    Originally posted by: manu12


    Hi,

    I want to remove completely hard disk hdisk1, so i have run the command rmdev -dl hdisk1,

    After running this command whenever I am giving command lspv it is showing single hard disk as hdisk0.

    But after running cfgmgr command it is showing again 2 Hard drives as hdisk0 and hdisk1.

    Can Any one tell me in this regards that how to delete that hard disk permanently?

    Regards,

    Manoj


  • 2.  Re: Hard disk is not removing

    Posted Mon July 28, 2008 10:40 AM

    Originally posted by: orphy


    Assuming that this is a "simple" machine, you'd need to physically remove the hard drive from the box in order not to have cfgmgr find it.
    Orphy


  • 3.  Re: Hard disk is not removing

    Posted Mon July 28, 2008 10:54 AM

    Originally posted by: manu12


    Thanks Orphy for quick respnse, But one thing I want to confirm that the hard disk which i want to remove was part of testvg(Example) so i have removed the vg and lv both.

    So if i am removing hard disk manually wheather it impact on my OS after rebooting(Wheather os will send me the error)

    Regards,

    Manoj


  • 4.  Re: Hard disk is not removing

    Posted Mon July 28, 2008 11:00 AM

    Originally posted by: orphy


    As long as hdisk1 is not part of rootvg and that you don't need it (i.e. no more LV/FS in it), you can physically remove it from the server. These steps should work for you:

    umount
    rmfs or rmlv
    varyoffvg
    exportvg
    physically remove hdisk1

    You will need to shutdown the server before the phy. remove unless hdisk1 is hot-swappable.
    Orphy


  • 5.  Re: Hard disk is not removing

    Posted Mon July 28, 2008 11:04 AM

    Originally posted by: manu12


    Thanks,

    Regards,

    Manoj


  • 6.  Re: Hard disk is not removing

    Posted Mon July 28, 2008 11:06 AM

    Originally posted by: orphy


    I missed that you said hdisk1 is "part of testvg" so don't do the varyoffvg and exportvg. These steps would work better for you.

    umount
    rmfs/rmlv
    lspv -l hdisk1 (to make sure nothing else is in hdisk1)
    reducevg testvg hdisk1
    rmdev -dl hdisk1
    remove hdisk1 physically (may need shutdown first)

    After you reboot, AIX will not know anything about hdisk1. Hope this helps!
    Orphy