<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #103: Upgrade CRIN4 to 2GB of RAM</title>
    <link>https://trac.crin.org/trac/ticket/103</link>
    <description>&lt;p&gt;
Ticket to track the upgrading of &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin4"&gt;Crin4&lt;/a&gt; from 1GB to 2GB of RAM.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/103</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 16 Mar 2017 09:58:27 GMT</pubDate>
      <title>cc set</title>
      <link>https://trac.crin.org/trac/ticket/103#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/103#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;russell&lt;/em&gt; &lt;em&gt;peter&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The server has been shutdown and restarted so the extra RAM is available:
&lt;/p&gt;
&lt;pre class="wiki"&gt;free -h
             total       used       free     shared    buffers     cached
Mem:          2.0G       381M       1.6G        12M        18M       147M
-/+ buffers/cache:       215M       1.8G
Swap:         707M         0B       707M
&lt;/pre&gt;&lt;p&gt;
And this should start to &lt;a class="ext-link" href="https://munin.crin.org/munin/crin.org/crin4.crin.org/index.html#system"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;show up on Munin&lt;/a&gt; soon.
&lt;/p&gt;
&lt;p&gt;
Looking at the disk, using &lt;tt&gt;fdisk&lt;/tt&gt; we have:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Command (m for help): p
Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xac596b78
Device     Boot  Start      End  Sectors  Size Id Type
/dev/sda1  *      2048   499711   497664  243M 83 Linux
/dev/sda2       501758 33552383 33050626 15.8G  5 Extended
/dev/sda5       501760 33552383 33050624 15.8G 8e Linux LVM
&lt;/pre&gt;&lt;p&gt;
And using &lt;tt&gt;pvdisplay&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt; pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               CRIN4-vg
  PV Size               15.76 GiB / not usable 2.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              4034
  Free PE               0
  Allocated PE          4034
  PV UUID               VkSyeC-iC5r-QTn9-fTwt-21fO-LFSo-m8pKML
&lt;/pre&gt;&lt;p&gt;
And the results of &lt;tt&gt;vgdisplay&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  --- Volume group ---
  VG Name               CRIN4-vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               15.76 GiB
  PE Size               4.00 MiB
  Total PE              4034
  Alloc PE / Size       4034 / 15.76 GiB
  Free  PE / Size       0 / 0
  VG UUID               nUqP0h-Ss5N-C2Nb-1WJQ-riUf-u5uB-naW2Le
&lt;/pre&gt;&lt;p&gt;
And the advice from 1984.is is:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
You first need to add a partition on the free space available to you after
you run it again.  This is a good howto
&lt;a class="ext-link" href="https://www.turnkeylinux.org/blog/extending-lvm"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://www.turnkeylinux.org/blog/extending-lvm&lt;/a&gt; , just remember you are
working with a partition not a disk.  When you have expanded the lvm volume
you need to expand the file system.
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
So I think we need to do the following
&lt;/p&gt;
&lt;pre class="wiki"&gt;pvcreate /dev/sda2
vgextend /dev/CRIN4-vg /dev/sda2
&lt;/pre&gt;&lt;p&gt;
But I'll run that past 1984.is before I do anything.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 17 Mar 2017 13:19:31 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/103#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/103#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have added a sudo account for 1984 so they can look at extending the root partition.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 17 Mar 2017 14:36:46 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/103#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/103#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.15&lt;/em&gt; to &lt;em&gt;0.3&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The notes here were used for adding the account &lt;a href="https://trac.crin.org/trac/wiki/Crin4#sshaccess"&gt;https://trac.crin.org/trac/wiki/Crin4#sshaccess&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The steps that 1984 followed:
&lt;/p&gt;
&lt;pre class="wiki"&gt; 1  sudo fdisk -l /dev/sda
 2  sudo cfdisk /dev/sda
 3  sudo fdisk -l /dev/sda
 4  sudo partprobe /dev/sda
 5  sudo apt-cache search partprobe
 6  sudo apt-get install parted
 7  sudo partprobe /dev/sda
 8  sudo ls /dev/sda3
 9  sudo pvcreate /dev/sda3
10  sudo vgdisplay --columns
11  sudo vgextend CRIN4-vg /dev/sda3
12  sudo vgdisplay --columns
13  sudo lvdisplay
14  sudo lvextend -l 100%FREE /dev/CRIN4-vg/root
15  sudo vgdisplay --columns
16  sudo lvresize -l +100%FREE /dev/CRIN4-vg/root
17  mount
18  sudo resize2fs /dev/CRIN4-vg/root
19  df -hP
&lt;/pre&gt;&lt;p&gt;
And the result:
&lt;/p&gt;
&lt;pre class="wiki"&gt;df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/dm-0        31G  9.9G   20G  34% /
udev             10M     0   10M   0% /dev
tmpfs           402M   21M  382M   6% /run
tmpfs          1005M   92K 1005M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs          1005M     0 1005M   0% /sys/fs/cgroup
/dev/sda1       236M   33M  191M  15% /boot
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 17 Mar 2017 14:42:27 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/103#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/103#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>russell</dc:creator>

      <pubDate>Mon, 20 Mar 2017 11:30:06 GMT</pubDate>
      <title>status changed; resolution deleted</title>
      <link>https://trac.crin.org/trac/ticket/103#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/103#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;closed&lt;/em&gt; to &lt;em&gt;reopened&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                &lt;em&gt;fixed&lt;/em&gt; deleted
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;pre class="wiki"&gt;Thanks Chris,
I'm going to set the big DB sync going now to get dev. in sync with live.
All the best,
Russell
On 17/03/2017 14:42, CRIN Trac wrote:
&amp;gt; #103: Upgrade CRIN4 to 2GB of RAM
&amp;gt; ------------------------------------+-----------------------------------
&amp;gt;                   Reporter:  chris   |                Owner:  chris
&amp;gt;                       Type:  defect  |               Status:  closed
&amp;gt;                   Priority:  major   |            Milestone:  Maintenance
&amp;gt;                  Component:  crin4   |              Version:
&amp;gt;                 Resolution:  fixed   |             Keywords:
&amp;gt; Estimated Number of Hours:  0       |  Add Hours to Ticket:  0
&amp;gt;                  Billable?:  1       |          Total Hours:  0.3
&amp;gt; ------------------------------------+-----------------------------------
&amp;gt; Changes (by chris):
&amp;gt;
&amp;gt;   * status:  new =&amp;gt; closed
&amp;gt;   * resolution:   =&amp;gt; fixed
&amp;gt;
&amp;gt;
&amp;gt; --
&amp;gt; Ticket URL: &amp;lt;https://trac.crin.org/trac/ticket/103#comment:4&amp;gt;
&amp;gt; CRIN Trac &amp;lt;https://trac.crin.org/trac&amp;gt;
&amp;gt; Trac project for CRIN website and servers.
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>