<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leonardo Borda &#187; fstab</title>
	<atom:link href="http://www.leonardoborda.com/blog/tag/fstab/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonardoborda.com/blog</link>
	<description>A bit of everything and answers that really work!</description>
	<lastBuildDate>Thu, 06 Oct 2011 00:47:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to create LVM on Ubuntu</title>
		<link>http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/</link>
		<comments>http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 21:45:11 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=248</guid>
		<description><![CDATA[Create LVM on Ubuntu 1. Using the whole secondary hard disk for LVM partition: sudo fdisk /dev/sdb Once in the fdisk menu: 1. press n to create a new disk partition, 2. press p to create a primary disk partition, 3. press 1 to define it as the first disk partition, 4. press ENTER twice. [...]]]></description>
			<content:encoded><![CDATA[<p>Create LVM on Ubuntu</p>
<p>1. Using the whole secondary hard disk for LVM partition:<br />
<code>sudo fdisk /dev/sdb</code></p>
<p>Once in the fdisk menu:<br />
1. press n to create a new disk partition,<br />
2. press p to create a primary disk partition,<br />
3. press 1 to define it as the first disk partition,<br />
4. press ENTER twice. This converts the whole secondary disk into a single disk partition,<br />
5. press t to select the partition type,<br />
6. press L to list all the supported partition types,<br />
7. press 8e to select Linux LVM partition type,<br />
8. press p to display the secondary hard disk partition setup. it shows you as /dev/sdb1.<br />
9. press w to write the partition table<br />
10. exit fdisk upon completion.</p>
<p>1.1 Assign disk partitions to physical volumes<br />
<code>sudo pvcreate /dev/sdb1</code></p>
<p>1.2 Create Volume Group VG for the /data and /backup volumes<br />
<code>sudo vgcreate myvg_data /dev/sdb1<br />
pvdisplay<br />
vgdisplay</code></p>
<p>pvdisplay and vgdisplay gives you information about LVM.</p>
<p>1.3 Create Logical Volumes ( LV )<br />
<code>sudo lvcreate -L 500G --name data myvg_data</code></p>
<p>1.4 Format file system<br />
sudo mke2fs -t ext4 -L /data /dev/myvg_data/data</p>
<p>1.5 Mount file system<br />
<code>sudo mkdir /data<br />
sudo mount /dev/myvg_data/data /data<br />
df -hT</code><br />
Make sure you see the partition mounted and its correct size.</p>
<p>1.7. Add it to the system startup<br />
Check disks UUID by installing blkid and takes not of the UUID from /dev/sdb1 &#8211; /dev/myvg_data/data<br />
sudo apt-get install id-utils<br />
sudo blkid</p>
<p>1.8 Add the following entry in /etc/fstab to have the partition mounted<br />
<code>sudo vi /etc/fstab</code><br />
Add at the end of the file the following lines:<br />
UUID=&lt;enter the uuid number found with blkid&gt;	/data               ext4    errors=remount-ro	0       1<br />
<code><br />
sudo mount -v<br />
sudo umount --force /data<br />
sudo mount -a<br />
sudo mount -v<br />
</code><br />
1.9 Make sure you can write something in to the new partition<br />
<code>touch /data/file1.asc<br />
ls -la /data<br />
</code><br />
2 Reboot the server and make sure that the /data partition is mounted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/how-to-create-lvm-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>configure fstab on solaris</title>
		<link>http://www.leonardoborda.com/blog/configure-fstab-on-solaris/</link>
		<comments>http://www.leonardoborda.com/blog/configure-fstab-on-solaris/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 03:53:57 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Knowledge Base]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.leonardoborda.com/blog/?p=172</guid>
		<description><![CDATA[vi /etc/vfstab Leonardo]]></description>
			<content:encoded><![CDATA[<p>vi /etc/vfstab</p>
<p>Leonardo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonardoborda.com/blog/configure-fstab-on-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

