<?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: add space to a file system in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792583#M2298</link>
    <description>Are you rotating your log files.  Implement logrotate,&lt;BR /&gt;and clear out old logs. This&lt;BR /&gt;should help.&lt;BR /&gt;&lt;BR /&gt;Walk your /var tree using&lt;BR /&gt;   du -s * &lt;BR /&gt;to find the largest space users. Likely /var/adm.&lt;BR /&gt;</description>
    <pubDate>Mon, 26 Aug 2002 14:58:37 GMT</pubDate>
    <dc:creator>Bill Thorsteinson</dc:creator>
    <dc:date>2002-08-26T14:58:37Z</dc:date>
    <item>
      <title>add space to a file system</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792581#M2296</link>
      <description>my /var system is full.&lt;BR /&gt;so i need to add a new hdd.&lt;BR /&gt;but how can i add or grow my /var system to this new space.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Aug 2002 06:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792581#M2296</guid>
      <dc:creator>tuhin</dc:creator>
      <dc:date>2002-08-23T06:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: add space to a file system</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792582#M2297</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;1) buy a disk&lt;BR /&gt;2) connect the disk&lt;BR /&gt;if you buy a scsi disk, it would be /dev/sdX.&lt;BR /&gt;if you buy a IDE disk, it would be /dev/hdX.&lt;BR /&gt;&lt;BR /&gt;3) Create a partition by fdisk.&lt;BR /&gt;You need to use "n" for create new partition, "p" for preview and "w" for write quit in the fdisk.&lt;BR /&gt;&lt;BR /&gt;4) After create the partition, create filesystem.&lt;BR /&gt;&lt;BR /&gt;(ext2)&lt;BR /&gt;mkfs -t ext2 /dev/your-device-file&lt;BR /&gt;&lt;BR /&gt;(ext3)&lt;BR /&gt;mkfs -j /dev/your-device-file&lt;BR /&gt;&lt;BR /&gt;5) test for mount the new partitin.&lt;BR /&gt;# mkdir /test &lt;BR /&gt;# mount /dev/your-device-file /test&lt;BR /&gt;# df&lt;BR /&gt;# umount /test&lt;BR /&gt;&lt;BR /&gt;6) boot the system single user mode&lt;BR /&gt;&lt;BR /&gt;From lilo prompt,  &lt;BR /&gt;boot:  linux single&lt;BR /&gt;&lt;BR /&gt;7) mount the new partition&lt;BR /&gt;# mkdir /2ndvar&lt;BR /&gt;# mount /dev/your-device-file /2ndvar&lt;BR /&gt;# df&lt;BR /&gt;&lt;BR /&gt;8) mount the your original /var&lt;BR /&gt;&lt;BR /&gt;9) copy the data&lt;BR /&gt;# cd /var&lt;BR /&gt;# find . -print | cpio -pvmdu /2ndvar&lt;BR /&gt;&lt;BR /&gt;10) compare the size&lt;BR /&gt;# df&lt;BR /&gt;&lt;BR /&gt;11) Change /etc/fstab to use new var at next boot&lt;BR /&gt;&lt;BR /&gt;12) reboot (with your finger cross)&lt;BR /&gt;&lt;BR /&gt;13)  boot and check&lt;BR /&gt;&lt;BR /&gt;My recommendation is, cleanup your /var dir , if you feel this procedure is too complicated....&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Aug 2002 07:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792582#M2297</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-08-23T07:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: add space to a file system</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792583#M2298</link>
      <description>Are you rotating your log files.  Implement logrotate,&lt;BR /&gt;and clear out old logs. This&lt;BR /&gt;should help.&lt;BR /&gt;&lt;BR /&gt;Walk your /var tree using&lt;BR /&gt;   du -s * &lt;BR /&gt;to find the largest space users. Likely /var/adm.&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Aug 2002 14:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-space-to-a-file-system/m-p/2792583#M2298</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2002-08-26T14:58:37Z</dc:date>
    </item>
  </channel>
</rss>

