<?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: Adding Extra Disks in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377383#M625922</link>
    <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;IF this VG is root VG (vg00), then you may not be able to increase most of the logical volumes online without OnlineJFS. Some of them (/usr,/var,/tmp/,/opt) are to be done in single user mode using /sbin commands. Some of them (/stand, primary swap and root) can never (well, there are few ways but I don't suggest) be done without re-installing it with make_tape_recovery tape.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Mon, 13 Sep 2004 01:25:48 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-09-13T01:25:48Z</dc:date>
    <item>
      <title>Adding Extra Disks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377379#M625918</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;I am playing around with an old UNIX workstation running HPUX v 10. I am only just starting to learn HPUX so please bear with me.&lt;BR /&gt;&lt;BR /&gt;I have started by installing the OS onto one disk. I have since added two more 2Gb drives and I can see them in the disk mangement (SAM)&lt;BR /&gt;&lt;BR /&gt;/dev/dsk/c0t4d0 (Disk 1 with O/S)&lt;BR /&gt;/dev/dsk/c0t5d0 (Disk 2)&lt;BR /&gt;/dev/dsk/c0t6d0 (Disk 3)&lt;BR /&gt;&lt;BR /&gt;I am wondering if I can increase some of the logical volumes on Disk 1 by using the space on Disk 2 and 3.&lt;BR /&gt;&lt;BR /&gt;Can this be achieved? If so, how do I go about it?&lt;BR /&gt;&lt;BR /&gt;Any advise would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanking you in advance&lt;BR /&gt;&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Sep 2004 01:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377379#M625918</guid>
      <dc:creator>Michael Smith_12</dc:creator>
      <dc:date>2004-09-13T01:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Extra Disks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377380#M625919</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes you can increase some volumes using new disks but not all.&lt;BR /&gt; You can not increase /stand swap and / volumes other you can invrease.&lt;BR /&gt;&lt;BR /&gt;steps are follows. boot workstation in single user mode.&lt;BR /&gt;&lt;BR /&gt;#pvcreate /dev/dsk/c0t5d0&lt;BR /&gt;#pvcreate /dev/dsk/c0t6d0&lt;BR /&gt;#vgextend /dev/vg00 /dev/dsk/c0t5d0 /dev/dsk/c0t6d0&lt;BR /&gt;Now suppose you want to increase size of lvol4 (generally /home) to 2 GB&lt;BR /&gt;#lvextend -L 2048 /dev/vg00/lvol4&lt;BR /&gt;#extendfs /dev/vg00/rlvol4&lt;BR /&gt;&lt;BR /&gt;Hope this will help&lt;BR /&gt;&lt;BR /&gt;Sunil</description>
      <pubDate>Mon, 13 Sep 2004 01:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377380#M625919</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2004-09-13T01:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Extra Disks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377381#M625920</link>
      <description>You can use SAM to do this as well. &lt;BR /&gt;&lt;BR /&gt;WIthout me going through a great spiel on how it's done, have a look at this document:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/5187-2216/5187-2216.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/5187-2216/5187-2216.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and have a look at chapter 6</description>
      <pubDate>Mon, 13 Sep 2004 01:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377381#M625920</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2004-09-13T01:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Extra Disks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377382#M625921</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;Using command line is preferred but you can also use SAM. SInce there is nothing to be written about how to use SAM (as it is self-explanatory), I will give you command line syntax.&lt;BR /&gt;&lt;BR /&gt;1. Ensure that the disks are not already part of a VG&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab |grep c0t5d0&lt;BR /&gt;&lt;BR /&gt;Make sure nothing returns&lt;BR /&gt;&lt;BR /&gt;2. Create PV on the disk&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;If the previous PV structures were not deleted on it, you will get a message (this is already part of a VG or something). Then use -f option. BUt make sure step 1 before doing so.&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;3. Expand the current VG.&lt;BR /&gt;&lt;BR /&gt;vgextend vg0x /dev/dsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;Now the space of c0t5d0 is available to vg0x. You can extend any of the logical volumes in vg0x upto the free size available in vg0x.&lt;BR /&gt;&lt;BR /&gt;To find out the free space in vg0x. Do&lt;BR /&gt;&lt;BR /&gt;vgdisplay vg0x |grep -i "free pe"&lt;BR /&gt;vgdisplay vg0x |grep -i "extent size"&lt;BR /&gt;&lt;BR /&gt;Multiply the above to get the size in MB.&lt;BR /&gt;&lt;BR /&gt;4. Choose a logical volume say /dev/vg0x/lvol1. You will need to unmount it if it is not mounted. If it is used by an application, then you will need to bring down the application.&lt;BR /&gt;&lt;BR /&gt;fuser -cu /dev/vg0x/lvol1&lt;BR /&gt;&lt;BR /&gt;will display all the processes that are accessing this filesystem. Stop them and unmount the logical volume&lt;BR /&gt;&lt;BR /&gt;umount /dev/vg0x/lvol1 &lt;BR /&gt;&lt;BR /&gt;5. Extend the logical volume and the filesystem on it.&lt;BR /&gt;&lt;BR /&gt;lvextend -L &lt;NEW_SIZE_IN_MB&gt; /dev/vg0x/lvol1&lt;BR /&gt;extendfs -F vxfs /dev/vg0x/rlvol1 (if it is a hfs filesystem do -F hfs)&lt;BR /&gt;&lt;BR /&gt;new_size_in_mb is the total new size not the incremental.&lt;BR /&gt;&lt;BR /&gt;6. Mount the filesystem back.&lt;BR /&gt;&lt;BR /&gt;mount /dev/vg0x/lvol1&lt;BR /&gt;&lt;BR /&gt;7. Check the space &lt;BR /&gt;&lt;BR /&gt;bdf /dev/vg0x/lvol1&lt;BR /&gt;&lt;BR /&gt;If you have OnlineJFS (swlist -l product |grep -i onlinejfs) installed, you can skip steps 4,5 and 6 with the folowing step.&lt;BR /&gt;&lt;BR /&gt;4b. Find the mount point&lt;BR /&gt;&lt;BR /&gt;bdf /dev/vg0x/lvol1 &lt;BR /&gt;&lt;BR /&gt;lvextend -L &lt;NEW_SIZE_IN_MB&gt; /dev/vg0x/lvol1&lt;BR /&gt;fsadm -b &lt;NEW_SIZE_IN_MB&gt;m /mount_point&lt;BR /&gt;&lt;BR /&gt;(ex., fsadm -b 2048m /apps1)&lt;BR /&gt;&lt;BR /&gt;Look at the following document on concepts of LVM.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/5187-2216/5187-2216.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/5187-2216/5187-2216.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;/NEW_SIZE_IN_MB&gt;&lt;/NEW_SIZE_IN_MB&gt;&lt;/NEW_SIZE_IN_MB&gt;</description>
      <pubDate>Mon, 13 Sep 2004 01:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377382#M625921</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-13T01:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Extra Disks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377383#M625922</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;IF this VG is root VG (vg00), then you may not be able to increase most of the logical volumes online without OnlineJFS. Some of them (/usr,/var,/tmp/,/opt) are to be done in single user mode using /sbin commands. Some of them (/stand, primary swap and root) can never (well, there are few ways but I don't suggest) be done without re-installing it with make_tape_recovery tape.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 13 Sep 2004 01:25:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377383#M625922</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-13T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Extra Disks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377384#M625923</link>
      <description>Thanks for all the quick responses.&lt;BR /&gt;&lt;BR /&gt;I've Sunil's and it did what I wanted. I'll have a look at the other responses soon when I play around with the 3rd HDD.&lt;BR /&gt;&lt;BR /&gt;Again thanks for the help</description>
      <pubDate>Mon, 13 Sep 2004 01:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-extra-disks/m-p/3377384#M625923</guid>
      <dc:creator>Michael Smith_12</dc:creator>
      <dc:date>2004-09-13T01:44:44Z</dc:date>
    </item>
  </channel>
</rss>

