<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to Remove a Disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127301#M449016</link>
    <description>If you do not want the date - no need to backup.&lt;BR /&gt;&lt;BR /&gt;Just go ahead and be very cautious when you type the device name of the disk. Make sure you use the correct device name.</description>
    <pubDate>Sun, 31 Aug 2008 06:51:47 GMT</pubDate>
    <dc:creator>Rasheed Tamton</dc:creator>
    <dc:date>2008-08-31T06:51:47Z</dc:date>
    <item>
      <title>How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127295#M449010</link>
      <description>Hi&lt;BR /&gt;i have rp8420 server,&lt;BR /&gt;How can I remove the disk "cxdxtx" to become unused?&lt;BR /&gt;and then remove the logical volume and then the volume group &lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 31 Aug 2008 04:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127295#M449010</guid>
      <dc:creator>Mousa55</dc:creator>
      <dc:date>2008-08-31T04:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127296#M449011</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To remove a disk you need to make sure disk should not contain any data.&lt;BR /&gt;&lt;BR /&gt;Means that all data should move to other set of disks if there are multiple disks in the VG or if you dont require to save data you can simply proceed to remove disk..&lt;BR /&gt;&lt;BR /&gt;you will be needing some set of commands:&lt;BR /&gt;&lt;BR /&gt;pvmove ----to move data to other disks(PVs)&lt;BR /&gt;lvremove if logical vol is to be removed&lt;BR /&gt;vgreduce ::: to remove disk from VG with other disks&lt;BR /&gt;&lt;BR /&gt;IF there is a single disk in VG and you want to clean it up (provided no data to be backup) then&lt;BR /&gt;&lt;BR /&gt;you can run vgexport volume group(Be careful while you run it in production env)&lt;BR /&gt;&lt;BR /&gt;Go through man pages of above commands to know more.&lt;BR /&gt;&lt;BR /&gt;Also provide complete detail in case you need command syntax also.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 31 Aug 2008 05:04:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127296#M449011</guid>
      <dc:creator>Deepak Kr</dc:creator>
      <dc:date>2008-08-31T05:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127297#M449012</link>
      <description>Hi Nejad,&lt;BR /&gt;here i m providing some guideline. you decide according to your setup.&lt;BR /&gt;&lt;BR /&gt;1)First move the data from one disk to another disk. &lt;BR /&gt;For eg.here we r moving the data c0t0d0 to c1t0d0&lt;BR /&gt;pvmove /dev/dsk/c0t0d0 /dev/dsk/c1t0d0&lt;BR /&gt;============================================&lt;BR /&gt;2) How to remove a Logical Volume&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhp &lt;BR /&gt;      1) Backup all user data&lt;BR /&gt;      2) Umount the filesystem&lt;BR /&gt;            umount /home&lt;BR /&gt;      3) remove the Logical volume&lt;BR /&gt;            lvremove /dev/vg01/lvhp&lt;BR /&gt;==============================================================&lt;BR /&gt;3) How to remove a disk from a volume group&lt;BR /&gt;      Note: the following example is using the disk c1t6d0 and the&lt;BR /&gt;      volume group vg01&lt;BR /&gt;&lt;BR /&gt;      1) Make sure that the disk is not in use:&lt;BR /&gt;            pvdisplay /dev/dsk/c1t6d0&lt;BR /&gt;         Look at line starting with Allocated PE the number at the end&lt;BR /&gt;         of the line should be 0. If it is not the disk is still in use.&lt;BR /&gt;      2) Remove the disk&lt;BR /&gt;            vgreduce /dev/vg01 /dev/dsk/c1t6d0&lt;BR /&gt;========================================================================&lt;BR /&gt;If you are using single pv in VG then u can export it to remove from vg.But it should be deactivate first.&lt;BR /&gt;#vgchange -a n vgname&lt;BR /&gt;#vgexport vgname&lt;BR /&gt;============================================================================&lt;BR /&gt;but u should rmember one thing when u r using the same PV for another VG then you &lt;BR /&gt;should use the -f option while creating the pv. &lt;BR /&gt;#pvcreate -f /dev/rdsk/c1t6d0&lt;BR /&gt;==========================================================================&lt;BR /&gt;while doing such type of activity u should take the backup first. Also go to man pages of  every command. Dont do the blindley anything  without understanding.Pls revert back if u have any doubts.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Prashant&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 31 Aug 2008 06:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127297#M449012</guid>
      <dc:creator>Prashanth Waugh</dc:creator>
      <dc:date>2008-08-31T06:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127298#M449013</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Backup the data&lt;BR /&gt;copy /etc/lvmtab &lt;BR /&gt;unmount filesystems&lt;BR /&gt;-umount /xxxxx&lt;BR /&gt;&lt;BR /&gt;lvremove LVs &lt;BR /&gt;- lvremove /dev/vgxx/lvolxx&lt;BR /&gt;&lt;BR /&gt;vgreduce (if there are more than one disk in the VG and you want to remove one by one)&lt;BR /&gt;-vgreduce /dev/vgxx /dev/dsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;If the VG contains only one disk. Then you can use vgremove direclty on the VG after removing all the LVs.&lt;BR /&gt;-vgremove /dev/vgxx&lt;BR /&gt;&lt;BR /&gt;(After that, tou can also use pvremove to remove LVM data structure from the disk&lt;BR /&gt;-pvremove /dev/rdsk/cXtXdX&lt;BR /&gt;check man pvremove). It can also be achived by pvcreate -f also.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Sun, 31 Aug 2008 06:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127298#M449013</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-08-31T06:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127299#M449014</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;and very thanks But the disk i you want to remove, Contains data but i don't needed.&lt;BR /&gt;Any difference in this case.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 31 Aug 2008 06:48:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127299#M449014</guid>
      <dc:creator>Mousa55</dc:creator>
      <dc:date>2008-08-31T06:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127300#M449015</link>
      <description>If you need to take only disk out, then you need to move the data of that disk onto other disk in same VG.&lt;BR /&gt;&lt;BR /&gt;pvmove source-disk destination-disk&lt;BR /&gt;&lt;BR /&gt;And if you dont need data on that disk.&lt;BR /&gt;&lt;BR /&gt;Then you can perform below tasks.&lt;BR /&gt;&lt;BR /&gt;lvremove lvname vgname&lt;BR /&gt;vgreduce vgname disk name&lt;BR /&gt;vgremove vgname&lt;BR /&gt;pvremove diskname&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;SKR</description>
      <pubDate>Sun, 31 Aug 2008 06:50:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127300#M449015</guid>
      <dc:creator>SKR_1</dc:creator>
      <dc:date>2008-08-31T06:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127301#M449016</link>
      <description>If you do not want the date - no need to backup.&lt;BR /&gt;&lt;BR /&gt;Just go ahead and be very cautious when you type the device name of the disk. Make sure you use the correct device name.</description>
      <pubDate>Sun, 31 Aug 2008 06:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127301#M449016</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-08-31T06:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127302#M449017</link>
      <description>&amp;gt;If you do not want the date  &lt;BR /&gt;If you do not want the data - typo  &lt;BR /&gt;</description>
      <pubDate>Sun, 31 Aug 2008 06:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127302#M449017</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-08-31T06:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Remove a Disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127303#M449018</link>
      <description>thanks for all</description>
      <pubDate>Sun, 31 Aug 2008 07:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-remove-a-disk/m-p/5127303#M449018</guid>
      <dc:creator>Mousa55</dc:creator>
      <dc:date>2008-08-31T07:08:18Z</dc:date>
    </item>
  </channel>
</rss>

