Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-06-2014, 12:35 PM   #1
Registered: Aug 2011
Posts: 38

Rep: Reputation: Disabled
Hard Disk Issue - fdisk and df -h


I have a dedicated server which has raid 1 configured to use 2x 1 Tb hard drive.

I want to create a volume group. But i m not able to do so.

If i do df -h i get this

[root@sd-55453 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 99G 2.7G 91G 3% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 194M 61M 123M 34% /boot
[root@sd-55453 ~]#

And if i do fdisk -l

[root@sd-55453 ~]# fdisk -l

Disk /dev/sda: 999.7 GB, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008dd48

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 13080 104857600 83 Linux
/dev/sda3 13080 14112 8290304 82 Linux swap / Solaris
/dev/sda4 14112 121533 862860094+ 8e Linux LVM
[root@sd-55453 ~]#

Now this dev/sda4 does not appear on df -h and i m new to this so how can i bring sda4 on def -h command. And after that only i can create LVG
Please suggest
Old 04-06-2014, 01:31 PM   #2
Senior Member
Registered: Nov 2011
Distribution: Debian
Posts: 1,187

Rep: Reputation: 243Reputation: 243Reputation: 243
df -h only shows mounted partitions.

fdisk shows all partitions on a disk.

You need to tell LVM which partitions are managed by LVM.

So enter
sudo lvm
then enter 'help' to list available LVM commands, 'quit' to return to command entry.

You start with pvcreate (enter pvcreate -h for more info).


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
Creating a hard disk partition using fdisk rfarrington Linux - Newbie 2 12-30-2013 10:52 AM
would like advice on hard disk format, fdisk -l is given DavidLee1A Linux From Scratch 11 12-26-2012 12:38 PM
how to partitioning the hard disk using fdisk command Prabhu.Are Linux - Desktop 8 12-21-2012 07:32 AM
[SOLVED] fdisk and df giving different hard disk size sysmicuser Linux - Newbie 8 03-14-2012 09:33 AM
Display Free Hard Disk Space using Fdisk amirsd Linux - Newbie 5 01-27-2010 02:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 PM.

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