<?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: disk unmount in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542796#M223532</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;to un-mount filesystem and safekeep data but not remove in the system, do this:&lt;BR /&gt;&lt;BR /&gt;# umount &lt;ALL file="" system="" related="" to="" the="" disks=""&gt;&lt;BR /&gt;# vgchange -a -n &lt;ALL volume="" group="" related="" to="" the="" disks=""&gt;&lt;BR /&gt;# vgexport -m /tmp/your_mapfile -s -v &lt;ALL volume="" group="" related="" to="" the="" disks=""&gt;&lt;BR /&gt;# vi /etc/fstab&lt;BR /&gt; -&amp;gt; comment off all volume group related to the disks&lt;BR /&gt;&lt;BR /&gt;to remove disk physically, if hot swappable, just pull out and run "rmsf -H &lt;HARDWARE path=""&gt;" but if not, a shutdown of the server is obviously needed. if disks r still on maintenance, u may like to approach the vendor to do it.&lt;BR /&gt;&lt;BR /&gt;regards.&lt;BR /&gt;&lt;/HARDWARE&gt;&lt;/ALL&gt;&lt;/ALL&gt;&lt;/ALL&gt;</description>
    <pubDate>Thu, 12 May 2005 01:11:21 GMT</pubDate>
    <dc:creator>Joseph Loo</dc:creator>
    <dc:date>2005-05-12T01:11:21Z</dc:date>
    <item>
      <title>disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542790#M223526</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Could someone tell what will typically require a disk to be removed? I have a requirement where some disks should not be used and removed to keep in a safe place. Is there a way we can keep the disks on the system unharmed. Could something like unmount be used? If at all the disks have to be removed, are there any things that should be taken care of? Could you suggest a link?</description>
      <pubDate>Wed, 11 May 2005 20:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542790#M223526</guid>
      <dc:creator>Sunil_47</dc:creator>
      <dc:date>2005-05-11T20:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542791#M223527</link>
      <description>Hi, Sunil&lt;BR /&gt;&lt;BR /&gt;First of all, you have to make sure there is no application/database will access this area. Before actually remove this disk from your system, make a backup copy of the data if there have in this disk.&lt;BR /&gt;&lt;BR /&gt;Second, you have umount the mount point, I suggest check your system's root or security policies, why 'someone' can uses those disks without inform the system administrator.</description>
      <pubDate>Wed, 11 May 2005 20:26:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542791#M223527</guid>
      <dc:creator>Matthew_50</dc:creator>
      <dc:date>2005-05-11T20:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542792#M223528</link>
      <description>hi sunil,&lt;BR /&gt;&lt;BR /&gt;there is no guarantee that a disks left unharmed will not meet its doom at any stage of its lifespan. so a guarantee (at least some) would be to backup data from these disks.&lt;BR /&gt;&lt;BR /&gt;also, r u asking what r the steps/procedure involve in removing a disks?&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Wed, 11 May 2005 20:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542792#M223528</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-05-11T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542793#M223529</link>
      <description>Thank you both. We are planning to remove some disks from the system. My questions are 1. Is there something that I could do to avoid removing the disks physically from the system using something like unmount (in other words make sure the disks are safe and nothing is accessing the disks but the disks doesn't have to be removed from the system) 2. If I am required to remove the disks, is there a procedure?</description>
      <pubDate>Wed, 11 May 2005 20:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542793#M223529</guid>
      <dc:creator>Sunil_47</dc:creator>
      <dc:date>2005-05-11T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542794#M223530</link>
      <description>hey sunil , first u got to unmount the filesystem .The command is umount, not "unmount". The command uses the block&lt;BR /&gt;device file or mount-point directory.Then u could remove the disk.Shutdown the system before doing it .Always unmount all mounted file systems before bringing the system down or you may cause corruption to the file systems. The umount -a command will unmount all the mounted file&lt;BR /&gt;systems. The shutdown script unmounts all file systems before bringing the system down.&lt;BR /&gt;hope it helps , bye.</description>
      <pubDate>Wed, 11 May 2005 21:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542794#M223530</guid>
      <dc:creator>Colin Gomes</dc:creator>
      <dc:date>2005-05-11T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542795#M223531</link>
      <description>Sunil,&lt;BR /&gt;&lt;BR /&gt;After umounting the filesystems, I recommend to do a vgexport (if the disks to be removed are the only disks in the VG) so that next time the system boots, the system doesn't throw any error while activating the VGs.  &lt;BR /&gt;&lt;BR /&gt;If the disks are a part of the VG, unmount (umount) the filesystems which are on that hard disk, and then do a vgreduce to remove the PV from the VG.  &lt;BR /&gt;&lt;BR /&gt;if the disks are non hot swappable disks, you have to shutdown the server to remove the disks.  Otherwise, you may pull out the disks and execute rmsf -H hardware path to remove the device files.&lt;BR /&gt;&lt;BR /&gt;1. Unmount the filesystems.&lt;BR /&gt;2. vgexport -m /tmp/mapefile -p /dev/vgxx&lt;BR /&gt;3. &lt;BR /&gt;   vgexport /dev/vgxx (if all the disks are in the same VG)&lt;BR /&gt;   vgreduce /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;4.  &lt;BR /&gt;   Shutdown the system and remove the disk (non hot swappable disks)&lt;BR /&gt;   Pull out the disk and execute rmsf -H hardware to remove the device files.&lt;BR /&gt;&lt;BR /&gt;With best wishes,&lt;BR /&gt;Naveej</description>
      <pubDate>Wed, 11 May 2005 22:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542795#M223531</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-11T22:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542796#M223532</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;to un-mount filesystem and safekeep data but not remove in the system, do this:&lt;BR /&gt;&lt;BR /&gt;# umount &lt;ALL file="" system="" related="" to="" the="" disks=""&gt;&lt;BR /&gt;# vgchange -a -n &lt;ALL volume="" group="" related="" to="" the="" disks=""&gt;&lt;BR /&gt;# vgexport -m /tmp/your_mapfile -s -v &lt;ALL volume="" group="" related="" to="" the="" disks=""&gt;&lt;BR /&gt;# vi /etc/fstab&lt;BR /&gt; -&amp;gt; comment off all volume group related to the disks&lt;BR /&gt;&lt;BR /&gt;to remove disk physically, if hot swappable, just pull out and run "rmsf -H &lt;HARDWARE path=""&gt;" but if not, a shutdown of the server is obviously needed. if disks r still on maintenance, u may like to approach the vendor to do it.&lt;BR /&gt;&lt;BR /&gt;regards.&lt;BR /&gt;&lt;/HARDWARE&gt;&lt;/ALL&gt;&lt;/ALL&gt;&lt;/ALL&gt;</description>
      <pubDate>Thu, 12 May 2005 01:11:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542796#M223532</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-05-12T01:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542797#M223533</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We will be doing the vgexport before this operation. /dev/vg01 has one lv /dev/vg01/lvol1. It has two disks ( two mirors. Actually I will have to remove 14 disks (for 7 VGs -- two disks each VG) .. So, can I follow the below approach?&lt;BR /&gt;&lt;BR /&gt;Example: Remove all disks ... &lt;BR /&gt;&lt;BR /&gt;1. Unmount all the filesystems for all disks.&lt;BR /&gt;2. vgreduce /dev/vgxx /dev/dsk/cxtydz&lt;BR /&gt;&lt;BR /&gt;QUESTION -- How should I do vgreduce on both the mirrors  for a vg? Currently we have /dev/dsk/c0t1d0 /dev/dsk/c1t1d0 for vg01&lt;BR /&gt;I will repeat this step for all vgs&lt;BR /&gt;&lt;BR /&gt;3. Shutdown the system and remove the disks (non hot swappable disks)&lt;BR /&gt;4. Pull out the disk and execute rmsf -H hardware to remove the device files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could you also tell the steps after I plug in all the disks back?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Thu, 12 May 2005 15:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542797#M223533</guid>
      <dc:creator>Sunil_47</dc:creator>
      <dc:date>2005-05-12T15:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542798#M223534</link>
      <description>Hello Any ideas?</description>
      <pubDate>Thu, 12 May 2005 18:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542798#M223534</guid>
      <dc:creator>Sunil_47</dc:creator>
      <dc:date>2005-05-12T18:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542799#M223535</link>
      <description>Sunil,&lt;BR /&gt;&lt;BR /&gt;Follow these steps.&lt;BR /&gt;&lt;BR /&gt;1.  Unmount all the filesystems.&lt;BR /&gt;2.  Remove the entries from /etc/fstab and from /etc/exports (if any) for these filesystems&lt;BR /&gt;3.  You can delete the mountpoints (otherwise any program referencing these filesystems will fill up the root directory)&lt;BR /&gt;4.  Create a map file before doing lvreduce and vgreduce&lt;BR /&gt;    vgexport -m /tmp/before_vg01 -p /dev/vg01&lt;BR /&gt;5.  lvreduce -m 0 /dev/vg01/lvol1 /dev/dsk/c0t1d0&lt;BR /&gt;6.  vgreduce /dev/vg01 /dev/dsk/c0t1d0&lt;BR /&gt;7.  vgexport -m /tmp/after_vg01 -p /dev/vg01&lt;BR /&gt;8.  vgchange -a n /dev/vg01&lt;BR /&gt;9.  vgexport /dev/vg01 &lt;BR /&gt;&lt;BR /&gt;Repeat the steps for all the VGs.&lt;BR /&gt;&lt;BR /&gt;Shutdown the system and remove the disks.  If possible label it from where you have taken and don't forgot to save those map files...i.e. after_vg0* and before_vg0*&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Thu, 12 May 2005 22:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542799#M223535</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-12T22:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: disk unmount</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542800#M223536</link>
      <description>Naveej,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for answering it. I've assembled all the steps as follows. Summary: I am removing all disks and reinstallaing them. Performing vgexport, vgimport as well as mirroring. Please confirm this is good. Thank you again.&lt;BR /&gt;&lt;BR /&gt;1. Unmount all the filesystems first&lt;BR /&gt;2. Remove the entries from /etc/fstab and from /etc/exports (if any) for these filesystems&lt;BR /&gt;3. Delete the mountpoints&lt;BR /&gt;4. vgexport -m /tmp/before_vg01 -p /dev/vg01 -- create map1&lt;BR /&gt;5. ftp the map1 to the new system&lt;BR /&gt;6. lvreduce -m 0 /dev/vg01/lvol1 /dev/dsk/c0t1d0&lt;BR /&gt;7. vgreduce /dev/vg01 /dev/dsk/c0t1d0&lt;BR /&gt;8. vgexport -m /tmp/after_vg01 -p /dev/vg01  -- create map2&lt;BR /&gt;9. ftp the map2 to the new system&lt;BR /&gt;10. vgchange -a n /dev/vg01&lt;BR /&gt;11. vgexport /dev/vg01 &lt;BR /&gt;&lt;BR /&gt;Repeat the above steps for all VGS.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;12. Place labels before removing the disks&lt;BR /&gt;13. Shutdown the system and remove all non-VG00 disks.&lt;BR /&gt;14. Perform the activity&lt;BR /&gt;15. Shutdown the system and reinsert all non-VG00 disks.&lt;BR /&gt;16. mkdir /dev/vg01&lt;BR /&gt;17. mknod /dev/vg01/group c 64 MINOR&lt;BR /&gt;18. vgimport -m /tmp/vg01map /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c1t1d0&lt;BR /&gt;19. vgchange -a y /dev/vg01 &lt;BR /&gt;20. vgcfgbackup vg01 &lt;BR /&gt;21. Repeat steps 16-20 for all other VGs&lt;BR /&gt;22. create entries in /etc/fstab &lt;BR /&gt;23. Mount all the filesystems&lt;BR /&gt;&lt;BR /&gt;Questions: &lt;BR /&gt;&lt;BR /&gt;1) At Step 11. I am  performing a vgexport. Should that be complemented by a vgimport (without using mapfile)?&lt;BR /&gt;&lt;BR /&gt;2) At step 18. should I use map2?&lt;BR /&gt;&lt;BR /&gt;Any other comments from anyone will be appreciated</description>
      <pubDate>Fri, 13 May 2005 14:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-unmount/m-p/3542800#M223536</guid>
      <dc:creator>Sunil_47</dc:creator>
      <dc:date>2005-05-13T14:56:33Z</dc:date>
    </item>
  </channel>
</rss>

