<?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 do i expand fileystem on a two node cluster on existing disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844596#M696357</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please Refer this document.&lt;BR /&gt;&lt;BR /&gt;DATE: 5/10/00&lt;BR /&gt;DOCUMENT DESCRIPTION: RESIZING A LOGICAL VOLUME IN A SERVICEGUARD PACKAGE&lt;BR /&gt;DOCUMENT ID: UXSGKBAN00000342&lt;BR /&gt; &lt;BR /&gt;You may provide feedback on this document &lt;BR /&gt;&lt;BR /&gt;RESIZING A LOGICAL VOLUME IN A SERVICEGUARD PACKAGE &lt;BR /&gt;DOCID: UXSGKBAN00000342   UPDATED: 20031112&lt;BR /&gt;DOCUMENT&lt;BR /&gt;This article addresses the process of changing the size of a logical volume&lt;BR /&gt;governed by Serviceguard.&lt;BR /&gt;&lt;BR /&gt;â ¢  A logical volume's size may only be increased or reduced when it's parent&lt;BR /&gt;volume group is active.&lt;BR /&gt;&lt;BR /&gt;â ¢   VxFS = Journal File System.   Online JFS = Advanced JFS = Advanced VxFS.&lt;BR /&gt;&lt;BR /&gt;â ¢  If Advanced Journal File System (AdvJFS) features are loaded, the&lt;BR /&gt;administrator can grow/reduce a file system within the logical volume while&lt;BR /&gt;the file system is in service.  If only standard JFS is loaded, the file&lt;BR /&gt;system must be unmounted in order to change it's size, and loss of data may&lt;BR /&gt;occur if the file system is reduced.&lt;BR /&gt;&lt;BR /&gt;â ¢  The results of reducing the size of a VxFS filesystem prior to AdvJFS&lt;BR /&gt;version 3.3 (which is not available for 10.20) are uncertain.  File system&lt;BR /&gt;backup is recommended prior to resizing a file system, but specifically&lt;BR /&gt;recommended for pre-3.3 file systems in case of unexpected truncation of a&lt;BR /&gt;file system.&lt;BR /&gt;&lt;BR /&gt;â ¢  Changing the size of a logical volume only affects the content of the VGDA&lt;BR /&gt;(LVM structures on the disks).  Therefore, after resizing the logical volume&lt;BR /&gt;and the file system within it, no Serviceguard files or commands need be&lt;BR /&gt;performed.  The size of the logical volume is loaded whenever the VG is&lt;BR /&gt;activated with the package startup.&lt;BR /&gt;&lt;BR /&gt;For the purposes of clarity, the following procedure uses an example volume&lt;BR /&gt;group and logical volume and mount point:  vg07, lvol4 and /mnt1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Growing a logical volume&lt;BR /&gt;1) If the VG is not active on any node, activate it on a node currently&lt;BR /&gt;   running (Serviceguard cmlvmd (Serviceguard) must be running in order to&lt;BR /&gt;   activate a clustered VG).&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a e vg07 &lt;BR /&gt;&lt;BR /&gt;2) On the node where the VG is active, use lvextend to increase the&lt;BR /&gt;   size of the lvol.&lt;BR /&gt;&lt;BR /&gt;   lvextend syntax:&lt;BR /&gt;   /usr/sbin/lvextend [-A autobackup] {-l le_number | -L lv_size | -m&lt;BR /&gt;   mirror_copies} lv_path [pv_path ...  | pvg_name ...]&lt;BR /&gt;   - where lv_size is in megabytes.&lt;BR /&gt;&lt;BR /&gt;   Sample command to grow an LVOL to 8GB size:&lt;BR /&gt;  # lvextend -L 8000 /dev/vg07/lvol4  &lt;BR /&gt;&lt;BR /&gt;3a) Growing a standard (non-AdvJFS) file system&lt;BR /&gt;  # cmhaltpkg &lt;PKG name=""&gt;   (umounts the file system)&lt;BR /&gt;  # vgchange -a e vg07           (activates the VG)&lt;BR /&gt;  # extendfs /dev/vg07/rlvol4    (grows the file sys)&lt;BR /&gt;  # vgchange -a n vg07           (deactivate the VG)&lt;BR /&gt;  # cmrunpkg &lt;PKG name=""&gt;    (start the package)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3b) Growing AdvJFS file systems:  (while the f/sys is active)&lt;BR /&gt;   To grow the file system to the new boundary of the logical volume,&lt;BR /&gt;   determine the number of disk blocks that match the new logical volume size.&lt;BR /&gt;   The formula for determining the number of blocks is:&lt;BR /&gt;&lt;BR /&gt;   Megabytes x 1024 bytes per block = Disk Blocks.&lt;BR /&gt;   NOTE:  The fsadm_vxfs man page refers to disk blocks as "sectors".&lt;BR /&gt;&lt;BR /&gt;   Example: grow a logical volume to 8GB.&lt;BR /&gt;&lt;BR /&gt;   8000MB * 1024 bytes/block = 8192000 disk blocks&lt;BR /&gt;&lt;BR /&gt;   Syntax to adjust the size of an AdvJFS file system:&lt;BR /&gt;   fsadm -F vxfs -b &lt;BLOCKS&gt;  /&lt;MOUNT_PT&gt;&lt;BR /&gt;&lt;BR /&gt;   Sample command:&lt;BR /&gt;  # fsadm -F vxfs -b 8192000  /mnt1&lt;BR /&gt;(see also the man page for fsadm_vxfs(1M))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Reducing the size of the logical volume&lt;BR /&gt;&lt;BR /&gt;Standard LVM&lt;BR /&gt;1) Backup the data files in the logical volume.&lt;BR /&gt;&lt;BR /&gt;2) If the logical volume has a file system on it, the file system must be&lt;BR /&gt;   unmounted before proceeding:&lt;BR /&gt;  # cmhaltpkg &lt;PKG name=""&gt;   (umounts the file system)&lt;BR /&gt;  # vgchange -a e vg07           (activates the VG)&lt;BR /&gt;&lt;BR /&gt;3) Reduce the size of the logical volume.&lt;BR /&gt;   Example - reduce an lvol to 2GB size:&lt;BR /&gt;&lt;BR /&gt;  # lvreduce -L 2000  /dev/vg07/lvol4&lt;BR /&gt;&lt;BR /&gt;4) Because the file system is now truncated abnormally, recreate the file&lt;BR /&gt;system:&lt;BR /&gt;  # newfs -F vxfs    /dev/vg07/rlvol4&lt;BR /&gt;                     note raw logical volume&lt;BR /&gt;&lt;BR /&gt;  # mount /dev/vg07/rlvol4 /mnt1 &lt;BR /&gt;  # bdf /mnt1   # verify it's size is correct&lt;BR /&gt;&lt;BR /&gt;5) Reload the data into the mounted file system.&lt;BR /&gt;&lt;BR /&gt;6) Now complete the process:&lt;BR /&gt;  # umount /mnt1&lt;BR /&gt;  # vgchange -a n vg07 &lt;BR /&gt;  # cmrunpkg &lt;PKG name=""&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Advanced JFS (while the logical volume is mounted):&lt;BR /&gt;1) Perform directory and extent re-org/de-fragmentation:&lt;BR /&gt;&lt;BR /&gt;  # fsadm -d -D -e -E /mnt1&lt;BR /&gt;&lt;BR /&gt;NOTES:&lt;BR /&gt;â ¢  This will fail if an inode is assigned past the end of the lvol.&lt;BR /&gt;&lt;BR /&gt;â ¢   HPUX 10.20 requires JFS version 3, 11.00 requires JFS version 3.3 and JFS&lt;BR /&gt;patches.&lt;BR /&gt;&lt;BR /&gt;â ¢  errno 16 may mean it cannot be reduced if the old lvol size is not a&lt;BR /&gt;multiple of 32MB&lt;BR /&gt;&lt;BR /&gt;2) Reduce the size of the file system online.  Example:  reduce the file&lt;BR /&gt;   system to 2GB:&lt;BR /&gt;&lt;BR /&gt;  # fsadm -F vxfs -b 2048000 /mnt1&lt;BR /&gt;&lt;BR /&gt;(2048000 = 2000MB x 1024 bytes per block.)&lt;BR /&gt;&lt;BR /&gt;3) Now reduce the logical volume size.  Example:&lt;BR /&gt;  # lvreduce -L 2000  /dev/vg07/lvol4&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;How to Extend Mounted Filesystem OnHP-UX Under Cluster Environment&lt;BR /&gt;&lt;BR /&gt; #lvextend â  L (Present Space + New Space) /dev/vg00/lvol4&lt;BR /&gt;&lt;BR /&gt;If OnlineJFS is avaible please carry the next step. (It is available on all NBB HP Servers)&lt;BR /&gt;        &lt;BR /&gt;        #fsadm â  F vxfs â  b (Present Space + New Space X 1024) /mount_point&lt;BR /&gt;&lt;BR /&gt;If OnlineJFS is not there not there then &lt;BR /&gt;&lt;BR /&gt;Umount the file System&lt;BR /&gt;Then Do&lt;BR /&gt; #umount /mount_point&lt;BR /&gt; #lvextend â  L (Present Space + New Space) /dev/vg00/lvol4&lt;BR /&gt; #extendfs  -F vxfs /dev/vg00/rlvol&lt;BR /&gt;Then Do Mount&lt;BR /&gt; #mount /dev/vg00/lvol /mount_point&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                   ### DOCUMENT END ###&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PKG&gt;&lt;/PKG&gt;&lt;/MOUNT_PT&gt;&lt;/BLOCKS&gt;&lt;/PKG&gt;&lt;/PKG&gt;</description>
    <pubDate>Thu, 17 Aug 2006 09:34:13 GMT</pubDate>
    <dc:creator>Muthyala</dc:creator>
    <dc:date>2006-08-17T09:34:13Z</dc:date>
    <item>
      <title>How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844590#M696351</link>
      <description>How do i expand a filesystem on two node disk&lt;BR /&gt;on existing disk.&lt;BR /&gt;&lt;BR /&gt;Jolly</description>
      <pubDate>Wed, 16 Aug 2006 09:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844590#M696351</guid>
      <dc:creator>Jolly Kalayil</dc:creator>
      <dc:date>2006-08-16T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844591#M696352</link>
      <description>Looks like you need to provide some more information on the requirement.</description>
      <pubDate>Wed, 16 Aug 2006 09:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844591#M696352</guid>
      <dc:creator>Pupil_1</dc:creator>
      <dc:date>2006-08-16T09:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844592#M696353</link>
      <description>Assuming that you have OnlineJFS and that you have enough free PE's in the VG then run lvextend on the LVOL and then run fsadm -F vxfs -b newsize on the corresponding filesystem. You can do it "on the fly" and because the LVM metadata is stored on the disks themselves, if the package moves to the other node, it will be aware of the larger LVOL/filesystem. More steps are involved if adding an LVOL, for example, but increasing the size of an existing LVOL can be done "on the fly". You must execute the commands manually because SAM will immediately tell you this is a VG under the control of MC/SG.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2006 10:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844592#M696353</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-16T10:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844593#M696354</link>
      <description>Hi jolly&lt;BR /&gt;&lt;BR /&gt;Do you mean you want to increace an existent filesystem or to create new file system and reflect the cluster?&lt;BR /&gt;&lt;BR /&gt;it was already explained to increace filesystem the above by &lt;BR /&gt;&lt;BR /&gt;I would like to explain about last case&lt;BR /&gt;&lt;BR /&gt;Let's you have two system name A, B&lt;BR /&gt;&lt;BR /&gt;1. create file system (on any node, A)&lt;BR /&gt;   - vgcreate &amp;gt; lvcreate &amp;gt;newfs&lt;BR /&gt;2. export the &lt;VG&gt; and import to node B&lt;BR /&gt;   &lt;BR /&gt;3. Reflect the vg into cluster&lt;BR /&gt;vgchange -a n &lt;VG&gt;  on A&lt;BR /&gt;vgchnage -c y &lt;VG&gt;  on A&lt;BR /&gt;&lt;BR /&gt;4. change the cluster cntl file&lt;BR /&gt;   /etc/cmcluster/&lt;PKG&gt;/&lt;PKG&gt;.cntl&lt;BR /&gt;   add VGS to be opened exclusive mode&lt;BR /&gt;   and add lvols new created to be mounted &lt;BR /&gt;   at fail-over situation automatically&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;nanan&lt;/PKG&gt;&lt;/PKG&gt;&lt;/VG&gt;&lt;/VG&gt;&lt;/VG&gt;</description>
      <pubDate>Wed, 16 Aug 2006 18:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844593#M696354</guid>
      <dc:creator>nanan</dc:creator>
      <dc:date>2006-08-16T18:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844594#M696355</link>
      <description>The answer is:  very carefully  :)&lt;BR /&gt;&lt;BR /&gt;Expanding file systems with onlinejfs on node with file system mounted:&lt;BR /&gt;&lt;BR /&gt;lvextend -L &lt;NEWSIZEINMB&gt; /dev/vgXX/lvolXX&lt;BR /&gt;&lt;BR /&gt;fsadm -b &lt;NEWSIZEINMB&gt;M /mount/point&lt;BR /&gt;&lt;BR /&gt;Then you need to create a map file:&lt;BR /&gt;&lt;BR /&gt;vgexport -s -v -p -m /tmp/vgXX.map /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;copy that file to the other node&lt;BR /&gt;on other node:&lt;BR /&gt;&lt;BR /&gt;make note of the group files minor number&lt;BR /&gt;ll /dev/vgXX/group&lt;BR /&gt;&lt;BR /&gt;vgexport /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgXX&lt;BR /&gt;mknod /dev/vgXX/group c 64 0xHH0000&lt;BR /&gt;&lt;BR /&gt;vgimport -s -v -m /tmp/vgXX.map /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;Also see:&lt;BR /&gt;&lt;BR /&gt;Managing MC/SG:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3936-90079/index.html" target="_blank"&gt;http://docs.hp.com/en/B3936-90079/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NEWSIZEINMB&gt;&lt;/NEWSIZEINMB&gt;</description>
      <pubDate>Wed, 16 Aug 2006 18:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844594#M696355</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-08-16T18:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844595#M696356</link>
      <description>There is no need to do a vgexport -s on the current node or a vgimport on the adoptive node. In this case, all of the changes are confined to the ondisk LVM metadata and to the LVOL/filesystem itself. As soon as the volume group is activated on the adoptive node, these changes are detected. I am assuming that the VG has been imported already. If, for example, the number of LVOL's in this VG changed rather than simply the size of an existing LVOL then more would have to be done. At the very least, device nodes would have to be created under /dev/vgxx for the new LVOL's (or removed for no-longer existing ones). The control scripts would also have to be copied so that the package would know what to do with the new LVOL's.&lt;BR /&gt;&lt;BR /&gt;There is one "gotcha" to not activating the volume group on the adoptive node. If the package fails over to the adoptive node AND a disk within that VG fails and must be replaced, then vgcfgrestore would have stale data. It is therefore wise, to schedule some (brief) downtime to move the package to the adoptive node, let it activate the vg, and do a vgvfgbackup on the adoptive node. (The vgcfgbackup was done automatically on the orignal node so no explicit action there is needed.)&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2006 20:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844595#M696356</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-16T20:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844596#M696357</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please Refer this document.&lt;BR /&gt;&lt;BR /&gt;DATE: 5/10/00&lt;BR /&gt;DOCUMENT DESCRIPTION: RESIZING A LOGICAL VOLUME IN A SERVICEGUARD PACKAGE&lt;BR /&gt;DOCUMENT ID: UXSGKBAN00000342&lt;BR /&gt; &lt;BR /&gt;You may provide feedback on this document &lt;BR /&gt;&lt;BR /&gt;RESIZING A LOGICAL VOLUME IN A SERVICEGUARD PACKAGE &lt;BR /&gt;DOCID: UXSGKBAN00000342   UPDATED: 20031112&lt;BR /&gt;DOCUMENT&lt;BR /&gt;This article addresses the process of changing the size of a logical volume&lt;BR /&gt;governed by Serviceguard.&lt;BR /&gt;&lt;BR /&gt;â ¢  A logical volume's size may only be increased or reduced when it's parent&lt;BR /&gt;volume group is active.&lt;BR /&gt;&lt;BR /&gt;â ¢   VxFS = Journal File System.   Online JFS = Advanced JFS = Advanced VxFS.&lt;BR /&gt;&lt;BR /&gt;â ¢  If Advanced Journal File System (AdvJFS) features are loaded, the&lt;BR /&gt;administrator can grow/reduce a file system within the logical volume while&lt;BR /&gt;the file system is in service.  If only standard JFS is loaded, the file&lt;BR /&gt;system must be unmounted in order to change it's size, and loss of data may&lt;BR /&gt;occur if the file system is reduced.&lt;BR /&gt;&lt;BR /&gt;â ¢  The results of reducing the size of a VxFS filesystem prior to AdvJFS&lt;BR /&gt;version 3.3 (which is not available for 10.20) are uncertain.  File system&lt;BR /&gt;backup is recommended prior to resizing a file system, but specifically&lt;BR /&gt;recommended for pre-3.3 file systems in case of unexpected truncation of a&lt;BR /&gt;file system.&lt;BR /&gt;&lt;BR /&gt;â ¢  Changing the size of a logical volume only affects the content of the VGDA&lt;BR /&gt;(LVM structures on the disks).  Therefore, after resizing the logical volume&lt;BR /&gt;and the file system within it, no Serviceguard files or commands need be&lt;BR /&gt;performed.  The size of the logical volume is loaded whenever the VG is&lt;BR /&gt;activated with the package startup.&lt;BR /&gt;&lt;BR /&gt;For the purposes of clarity, the following procedure uses an example volume&lt;BR /&gt;group and logical volume and mount point:  vg07, lvol4 and /mnt1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Growing a logical volume&lt;BR /&gt;1) If the VG is not active on any node, activate it on a node currently&lt;BR /&gt;   running (Serviceguard cmlvmd (Serviceguard) must be running in order to&lt;BR /&gt;   activate a clustered VG).&lt;BR /&gt;&lt;BR /&gt;  # vgchange -a e vg07 &lt;BR /&gt;&lt;BR /&gt;2) On the node where the VG is active, use lvextend to increase the&lt;BR /&gt;   size of the lvol.&lt;BR /&gt;&lt;BR /&gt;   lvextend syntax:&lt;BR /&gt;   /usr/sbin/lvextend [-A autobackup] {-l le_number | -L lv_size | -m&lt;BR /&gt;   mirror_copies} lv_path [pv_path ...  | pvg_name ...]&lt;BR /&gt;   - where lv_size is in megabytes.&lt;BR /&gt;&lt;BR /&gt;   Sample command to grow an LVOL to 8GB size:&lt;BR /&gt;  # lvextend -L 8000 /dev/vg07/lvol4  &lt;BR /&gt;&lt;BR /&gt;3a) Growing a standard (non-AdvJFS) file system&lt;BR /&gt;  # cmhaltpkg &lt;PKG name=""&gt;   (umounts the file system)&lt;BR /&gt;  # vgchange -a e vg07           (activates the VG)&lt;BR /&gt;  # extendfs /dev/vg07/rlvol4    (grows the file sys)&lt;BR /&gt;  # vgchange -a n vg07           (deactivate the VG)&lt;BR /&gt;  # cmrunpkg &lt;PKG name=""&gt;    (start the package)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3b) Growing AdvJFS file systems:  (while the f/sys is active)&lt;BR /&gt;   To grow the file system to the new boundary of the logical volume,&lt;BR /&gt;   determine the number of disk blocks that match the new logical volume size.&lt;BR /&gt;   The formula for determining the number of blocks is:&lt;BR /&gt;&lt;BR /&gt;   Megabytes x 1024 bytes per block = Disk Blocks.&lt;BR /&gt;   NOTE:  The fsadm_vxfs man page refers to disk blocks as "sectors".&lt;BR /&gt;&lt;BR /&gt;   Example: grow a logical volume to 8GB.&lt;BR /&gt;&lt;BR /&gt;   8000MB * 1024 bytes/block = 8192000 disk blocks&lt;BR /&gt;&lt;BR /&gt;   Syntax to adjust the size of an AdvJFS file system:&lt;BR /&gt;   fsadm -F vxfs -b &lt;BLOCKS&gt;  /&lt;MOUNT_PT&gt;&lt;BR /&gt;&lt;BR /&gt;   Sample command:&lt;BR /&gt;  # fsadm -F vxfs -b 8192000  /mnt1&lt;BR /&gt;(see also the man page for fsadm_vxfs(1M))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Reducing the size of the logical volume&lt;BR /&gt;&lt;BR /&gt;Standard LVM&lt;BR /&gt;1) Backup the data files in the logical volume.&lt;BR /&gt;&lt;BR /&gt;2) If the logical volume has a file system on it, the file system must be&lt;BR /&gt;   unmounted before proceeding:&lt;BR /&gt;  # cmhaltpkg &lt;PKG name=""&gt;   (umounts the file system)&lt;BR /&gt;  # vgchange -a e vg07           (activates the VG)&lt;BR /&gt;&lt;BR /&gt;3) Reduce the size of the logical volume.&lt;BR /&gt;   Example - reduce an lvol to 2GB size:&lt;BR /&gt;&lt;BR /&gt;  # lvreduce -L 2000  /dev/vg07/lvol4&lt;BR /&gt;&lt;BR /&gt;4) Because the file system is now truncated abnormally, recreate the file&lt;BR /&gt;system:&lt;BR /&gt;  # newfs -F vxfs    /dev/vg07/rlvol4&lt;BR /&gt;                     note raw logical volume&lt;BR /&gt;&lt;BR /&gt;  # mount /dev/vg07/rlvol4 /mnt1 &lt;BR /&gt;  # bdf /mnt1   # verify it's size is correct&lt;BR /&gt;&lt;BR /&gt;5) Reload the data into the mounted file system.&lt;BR /&gt;&lt;BR /&gt;6) Now complete the process:&lt;BR /&gt;  # umount /mnt1&lt;BR /&gt;  # vgchange -a n vg07 &lt;BR /&gt;  # cmrunpkg &lt;PKG name=""&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Advanced JFS (while the logical volume is mounted):&lt;BR /&gt;1) Perform directory and extent re-org/de-fragmentation:&lt;BR /&gt;&lt;BR /&gt;  # fsadm -d -D -e -E /mnt1&lt;BR /&gt;&lt;BR /&gt;NOTES:&lt;BR /&gt;â ¢  This will fail if an inode is assigned past the end of the lvol.&lt;BR /&gt;&lt;BR /&gt;â ¢   HPUX 10.20 requires JFS version 3, 11.00 requires JFS version 3.3 and JFS&lt;BR /&gt;patches.&lt;BR /&gt;&lt;BR /&gt;â ¢  errno 16 may mean it cannot be reduced if the old lvol size is not a&lt;BR /&gt;multiple of 32MB&lt;BR /&gt;&lt;BR /&gt;2) Reduce the size of the file system online.  Example:  reduce the file&lt;BR /&gt;   system to 2GB:&lt;BR /&gt;&lt;BR /&gt;  # fsadm -F vxfs -b 2048000 /mnt1&lt;BR /&gt;&lt;BR /&gt;(2048000 = 2000MB x 1024 bytes per block.)&lt;BR /&gt;&lt;BR /&gt;3) Now reduce the logical volume size.  Example:&lt;BR /&gt;  # lvreduce -L 2000  /dev/vg07/lvol4&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;How to Extend Mounted Filesystem OnHP-UX Under Cluster Environment&lt;BR /&gt;&lt;BR /&gt; #lvextend â  L (Present Space + New Space) /dev/vg00/lvol4&lt;BR /&gt;&lt;BR /&gt;If OnlineJFS is avaible please carry the next step. (It is available on all NBB HP Servers)&lt;BR /&gt;        &lt;BR /&gt;        #fsadm â  F vxfs â  b (Present Space + New Space X 1024) /mount_point&lt;BR /&gt;&lt;BR /&gt;If OnlineJFS is not there not there then &lt;BR /&gt;&lt;BR /&gt;Umount the file System&lt;BR /&gt;Then Do&lt;BR /&gt; #umount /mount_point&lt;BR /&gt; #lvextend â  L (Present Space + New Space) /dev/vg00/lvol4&lt;BR /&gt; #extendfs  -F vxfs /dev/vg00/rlvol&lt;BR /&gt;Then Do Mount&lt;BR /&gt; #mount /dev/vg00/lvol /mount_point&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                   ### DOCUMENT END ###&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PKG&gt;&lt;/PKG&gt;&lt;/MOUNT_PT&gt;&lt;/BLOCKS&gt;&lt;/PKG&gt;&lt;/PKG&gt;</description>
      <pubDate>Thu, 17 Aug 2006 09:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844596#M696357</guid>
      <dc:creator>Muthyala</dc:creator>
      <dc:date>2006-08-17T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do i expand fileystem on a two node cluster on existing disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844597#M696358</link>
      <description>Sorry - I meant to add that the vgexport/vgimport is only required if you add disks to the vg.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 17 Aug 2006 10:00:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-expand-fileystem-on-a-two-node-cluster-on-existing-disk/m-p/3844597#M696358</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-08-17T10:00:35Z</dc:date>
    </item>
  </channel>
</rss>

