LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2014, 11:49 PM   #1
sachinsud
Member
 
Registered: Aug 2011
Posts: 38

Rep: Reputation: Disabled
Partition Issue


Hi,

I have a dedicated server which has one hard drive of 120gb SSD.

I want to use this server for virtualization with kvm. I am going to make it as solus vm slave and then solusvm master would connect it.

But before i install solusvm slave on it. It needs to be do certain partition which has LVM and i can create VG out of it.

Now i m completely new to this. My DC guys gave me the server and this is the info :-

Now, when i go inside the server and run these commands


[root@node ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 39G 923M 36G 3% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 194M 28M 157M 15% /boot
[root@node ~]# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0001ac67

Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 5125 40960000 83 Linux
/dev/sda3 5125 5635 4096000 82 Linux swap / Solaris
[root@node ~]#


Now, basically i want to create a LVM partition of the remaining space and create a VG out of it?

Any idea how it can be done?

Last edited by sachinsud; 01-02-2014 at 11:58 PM.
 
Old 01-03-2014, 02:51 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by sachinsud View Post
Any idea how it can be done?
Sure. You wanna know?



Basically you create a nother partition, tag lvm on the partition (also this is not really needed). Then use pvcreate to create a physical volume, then vgcreate to create a volume group and last but most importand lvcreate to create a logical volume.

http://www.debian-administration.org/articles/410
 
Old 01-03-2014, 04:12 AM   #3
sachinsud
Member
 
Registered: Aug 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
I reinstalled the centos using an image and i get this now

[root@node ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-root 73G 959M 68G 2% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 243M 29M 202M 13% /boot
/dev/mapper/vg-home 29G 173M 28G 1% /home
/dev/mapper/vg-tmp 1008M 34M 924M 4% /tmp
[root@node ~]# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0001ac67

Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 256000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 14594 116963328 8e Linux LVM

Disk /dev/mapper/vg-root: 78.8 GB, 78785806336 bytes
255 heads, 63 sectors/track, 9578 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg-swap: 8422 MB, 8422162432 bytes
255 heads, 63 sectors/track, 1023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg-home: 31.5 GB, 31474057216 bytes
255 heads, 63 sectors/track, 3826 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg-tmp: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

[root@node ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vg" using metadata type lvm2
[root@node ~]#
 
Old 01-03-2014, 08:48 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Looking good.

System working as expected? Any more questions?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 13 Installation issue -- Unable to install multiple linux distributions ---partition issue navneethr Linux - General 6 12-23-2010 12:17 AM
Partition Issue? your_shadow03 Linux - Newbie 7 11-28-2009 02:04 AM
Partition Issue swamprat Linux - Newbie 2 12-27-2006 08:33 PM
Partition Issue Stabby McTwist Ubuntu 5 10-13-2006 01:38 AM
Partition Issue. rvijay Linux - Newbie 1 08-24-2003 03:28 AM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration