<?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 a disk and extending my file System in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860604#M635889</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If I understood correctly, I would do the following.&lt;BR /&gt;&lt;BR /&gt;1. Add a new disk (say c1t10d0) of the same size as of c0t10d0 to the empty bay.&lt;BR /&gt;&lt;BR /&gt;ioscan -f&lt;BR /&gt;ioscan -fnC disk (identify the device file)&lt;BR /&gt;insf&lt;BR /&gt;pvcreate /dev/rdsk/c1t10d0&lt;BR /&gt;vgextend vg02 /dev/dsk/c1t10d0&lt;BR /&gt;&lt;BR /&gt;2. Remove lvol5. This will free up c0t10d0, c0t11d0 and c1t11d0 (if it has part of lvol5). You have c1t10d0 free anyway.&lt;BR /&gt;&lt;BR /&gt;lvremove /dev/vg02/lvol5&lt;BR /&gt;&lt;BR /&gt;3. Mirror lvol3 onto c1t10d0 (new disk). This is completely optional. But your setup will be consistent to have all the db* volumes mirrored.  This will leave equal amount of space on c1t10d0 and c0t10d0.&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg02/lvol3 /dev/dsk/c1t10d0&lt;BR /&gt;&lt;BR /&gt;4. Now extend lvol1 onto c0t10d0 and c1t10d0 (new disk)&lt;BR /&gt;lvextend -L new_size_in_mb /dev/vg02/lvol1 /dev/dsk/c0t10d0 /dev/dsk/c1t10d0&lt;BR /&gt;&lt;BR /&gt;5. Extend lvol2 onto c0t11d0 and c1t11d0&lt;BR /&gt;&lt;BR /&gt;lvextend -L new_size_in_mb /dev/vg02/lvol2 /dev/dsk/c0t11d0 /dev/dsk/c1t11d0&lt;BR /&gt;&lt;BR /&gt;Please remember the size you can use is the minimum of the available spaces in the disk pair.&lt;BR /&gt;&lt;BR /&gt;For ex., if c0t10d0 has 100MB and c1t10d0  has 200 MB, you can only use 100MB.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Mon, 09 Dec 2002 22:45:49 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2002-12-09T22:45:49Z</dc:date>
    <item>
      <title>Adding a disk and extending my file System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860602#M635887</link>
      <description>I have disk cabinet with 7 physical volumes configured as Vg02 with 5 logical volumes&lt;BR /&gt;&lt;BR /&gt;  - /dev/dsk/c0t8d0 &amp;lt; ---- &amp;gt;  /dev/dsk/c1t8d0, mirrored Free PE = 0&lt;BR /&gt;(/db01mounted on /dev/vg02/lvol1)&lt;BR /&gt;&lt;BR /&gt;-  /dev/dsk/c0t9d0 &amp;lt; ------- &amp;gt;   /dev/dsk/c1t9d0 mirrored, Free PE = 0&lt;BR /&gt;(/db03 mounted on  /dev/vg02/lvol1)&lt;BR /&gt;&lt;BR /&gt;- /dev/dsk/c0t10d0, Free PE = 0    &amp;lt; ------ &amp;gt;  Empty bay&lt;BR /&gt;(c0t10d0 hold  db03 mounted on /dev/vg02/lvol3,  /testdb, mounted on  dev/vg02/lvol5)&lt;BR /&gt;&lt;BR /&gt;- /dev/dsk/c0t11d0 Free PE = 0 &amp;lt; ------ &amp;gt;   /dev/dsk/c1t11d0 Free PE = 670 &lt;BR /&gt;(c0t11d0 hold /db03 mounted on /dev/vg02/lvol3,   /avdb on /dev/vg02/lvol4 and /testdb on /dev/vg02/lvol5,  lvol4 is mirrored too )&lt;BR /&gt;&lt;BR /&gt;How to extended lvol1 and lvol2 to provide more disk space to db01 and db02, lvol1 and lvol2 are mirrored.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My db01 on lvol1 and db02 on lvol2 are almost full I want to extended lvol1 and lvol02. Right now the only free extends available are on c1t11d0. I want to add a disk on the empty bay as c1t10d0 but there is no free space available on c0t10d0 to mirror to. Mirrored space is required to extend lvol1 and lvol2.  However  /testdb mounted on lvol5, which is spread out on the 3 disks c0t10d0, c0t11d0 and c1t11d0 is just a test database I can delete and recreate later where free space will be available. &lt;BR /&gt;&lt;BR /&gt;I guess I can safely delete /dev/vg02/lvol5, my test database and use the space to extended lvol1 and lvol2 on mirrored c0t10d0 and c1t10d0 (new disk added).  I am using HFS on HP 10.20.  How should I proceed and what are the commands. Do I have to boot under user mode in order to  delete lvol5 and extend the file system. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you &lt;BR /&gt;</description>
      <pubDate>Mon, 09 Dec 2002 21:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860602#M635887</guid>
      <dc:creator>ousseynou diagne</dc:creator>
      <dc:date>2002-12-09T21:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a disk and extending my file System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860603#M635888</link>
      <description>It's hard to tell accurately how the extents are spread out without the "pvdisplay" output of each disks. What I'll do is first delete the 15GB lvol5 then re-evaluate how the layout would look like afterwards. To make this clean I think you would have to "pvmove" lvol3 (which is not mirrored) because now it's spread out onto 3 disks. Well why don't you do that first (delete lvol5 )..&lt;BR /&gt;# umount /testdb&lt;BR /&gt;# lvremove /dev/vg02/lvol5&lt;BR /&gt;# vi /etc/fstab&lt;BR /&gt;==&amp;gt; Comment out "/testdb" entry.&lt;BR /&gt;Then re-post all your LVM config again, this time also provide "pvdisplay -v" output of all the last 3 disks (c0t10d0, c0t11d0 and c1t11d0). That would help determine what's the best way to do this.</description>
      <pubDate>Mon, 09 Dec 2002 22:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860603#M635888</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-12-09T22:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a disk and extending my file System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860604#M635889</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If I understood correctly, I would do the following.&lt;BR /&gt;&lt;BR /&gt;1. Add a new disk (say c1t10d0) of the same size as of c0t10d0 to the empty bay.&lt;BR /&gt;&lt;BR /&gt;ioscan -f&lt;BR /&gt;ioscan -fnC disk (identify the device file)&lt;BR /&gt;insf&lt;BR /&gt;pvcreate /dev/rdsk/c1t10d0&lt;BR /&gt;vgextend vg02 /dev/dsk/c1t10d0&lt;BR /&gt;&lt;BR /&gt;2. Remove lvol5. This will free up c0t10d0, c0t11d0 and c1t11d0 (if it has part of lvol5). You have c1t10d0 free anyway.&lt;BR /&gt;&lt;BR /&gt;lvremove /dev/vg02/lvol5&lt;BR /&gt;&lt;BR /&gt;3. Mirror lvol3 onto c1t10d0 (new disk). This is completely optional. But your setup will be consistent to have all the db* volumes mirrored.  This will leave equal amount of space on c1t10d0 and c0t10d0.&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg02/lvol3 /dev/dsk/c1t10d0&lt;BR /&gt;&lt;BR /&gt;4. Now extend lvol1 onto c0t10d0 and c1t10d0 (new disk)&lt;BR /&gt;lvextend -L new_size_in_mb /dev/vg02/lvol1 /dev/dsk/c0t10d0 /dev/dsk/c1t10d0&lt;BR /&gt;&lt;BR /&gt;5. Extend lvol2 onto c0t11d0 and c1t11d0&lt;BR /&gt;&lt;BR /&gt;lvextend -L new_size_in_mb /dev/vg02/lvol2 /dev/dsk/c0t11d0 /dev/dsk/c1t11d0&lt;BR /&gt;&lt;BR /&gt;Please remember the size you can use is the minimum of the available spaces in the disk pair.&lt;BR /&gt;&lt;BR /&gt;For ex., if c0t10d0 has 100MB and c1t10d0  has 200 MB, you can only use 100MB.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 09 Dec 2002 22:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-a-disk-and-extending-my-file-system/m-p/2860604#M635889</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-12-09T22:45:49Z</dc:date>
    </item>
  </channel>
</rss>

