LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-13-2013, 03:55 PM   #1
Spetsnaz
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Rep: Reputation: Disabled
Exclamation "df -h" Question


In my dedicated server I only need 2 partitions but I am not sure why so many were created.
I am using OVH dedicated server so maybe thats why.
This is my "df -h" output

Code:
[root@ns4002250 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                 20G  753M   18G   4% /
/dev/root              20G  753M   18G   4% /
none                  7.8G  456K  7.8G   1% /dev
/dev/mapper/vg-lv1    1.8T  196M  1.7T   1% /kvm
tmpfs                 7.8G     0  7.8G   0% /dev/shm
/dev/root              20G  753M   18G   4% /var/named/chroot/etc/named
/dev/root              20G  753M   18G   4% /var/named/chroot/var/named
/dev/root              20G  753M   18G   4% /var/named/chroot/etc/named.conf
/dev/root              20G  753M   18G   4% /var/named/chroot/etc/named.rfc1912.zones
/dev/root              20G  753M   18G   4% /var/named/chroot/etc/rndc.key
/dev/root              20G  753M   18G   4% /var/named/chroot/usr/lib64/bind
/dev/root              20G  753M   18G   4% /var/named/chroot/etc/named.iscdlv.key
/dev/root              20G  753M   18G   4% /var/named/chroot/etc/named.root.key
[root@ns4002250 ~]#
This will be a KVM server and I think I only need this part
Code:
rootfs                 20G  753M   18G   4% /
/dev/root              20G  753M   18G   4% /
none                  7.8G  456K  7.8G   1% /dev
/dev/mapper/vg-lv1    1.8T  196M  1.7T   1% /kvm
But how do I remove the rest of the partitions and add it to "/dev/mapper/vg-lv1"
 
Old 04-13-2013, 04:34 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
All the partitions name /dev/root aren't real on disk partitions. They look like bind mounts related to the operation of the BIND DNS server (named), which typically runs in a chroot jail for security reasons (in this case the jail is in /var/named/chroot). If you look at these partitions, you can see they have exactly the same usage % as your root filesystem (in fact /dev/root is your root filesystem). These are just pseudo-partitions for the name server (been awhile since I had to run BIND, so I'm not sure why things are set up this way). They are not costing you any space you would otherwise have. Also, you do need /dev/shm as well, but it's an in memory filesystem like /dev itself -- again, it's not costing you anything.
 
1 members found this post helpful.
Old 04-13-2013, 04:39 PM   #3
Spetsnaz
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by btmiller View Post
All the partitions name /dev/root aren't real on disk partitions. They look like bind mounts related to the operation of the BIND DNS server (named), which typically runs in a chroot jail for security reasons (in this case the jail is in /var/named/chroot). If you look at these partitions, you can see they have exactly the same usage % as your root filesystem (in fact /dev/root is your root filesystem). These are just pseudo-partitions for the name server (been awhile since I had to run BIND, so I'm not sure why things are set up this way). They are not costing you any space you would otherwise have. Also, you do need /dev/shm as well, but it's an in memory filesystem like /dev itself -- again, it's not costing you anything.
Thank you for explaining everything and thank you.
But my last thing is
how come there is only 1.7TB on /dev/mapper/vg-lv1 when I was doing partitioning on OVH it had 1.9TB.
 
Old 04-13-2013, 05:15 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The filesystem uses a bit of extra space to hold things like inodes and other metadata. There's also some space reserved for root (5% by default IIRC). This probably accounts for the slight discrepancy.
 
1 members found this post helpful.
Old 04-13-2013, 05:15 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The filesystem uses a bit of extra space to hold things like inodes and other metadata. There's also some space reserved for root (5% by default IIRC). This probably accounts for the slight discrepancy.
 
1 members found this post helpful.
Old 04-13-2013, 05:19 PM   #6
Spetsnaz
LQ Newbie
 
Registered: Feb 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
The filesystem uses a bit of extra space to hold things like inodes and other metadata. There's also some space reserved for root (5% by default IIRC). This probably accounts for the slight discrepancy.
I see.
Thank you very much BTMiller for the answers. Very helpful.
I was just a bit worried why I only had 1.7TB allocated on a section.
But now I know.
 
  


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
Question on "qscan" (used by "qpxtool" for scanning DVD/CD burn quality) haertig Linux - Software 1 02-10-2013 08:16 PM
A question about "echo "$CALLER" | tr -s '[:upper:]' '[:lower:]'" thomas2004ch Linux - Software 5 03-13-2012 03:57 PM
[SOLVED] A "DropBox" question, error: Can't sync:".directory":access denied. Robert.Thompson Slackware 4 08-25-2011 10:02 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
"Broken" envirnment variable (MANPATH) and "/etc/profile.d" question. ErV Slackware 3 03-20-2007 10:42 AM


All times are GMT -5. The time now is 05:21 AM.

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