LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Xen DomU, what's mapped to where and how much free space? (http://www.linuxquestions.org/questions/linux-software-2/xen-domu-whats-mapped-to-where-and-how-much-free-space-650576/)

MikeyCarter 06-20-2008 12:46 PM

Xen DomU, what's mapped to where and how much free space?
 
I'm looking for a good way to monitor space on all my xen DomU's. I found a command virt-df but it only tells me space and how the DomU sees the drive. I need to see mount points to know what's what.

ie:

Code:

Filesystem                            Size      Used  Available Type
fireflyold:sda1                  752.1 GiB  665.0 GiB  87.2 GiB Linux ext2/3
fireflyold:sda3                  152.0 MiB  39.1 MiB  112.9 MiB Linux ext2/3
CentOS5:xvda1                    152.0 MiB  23.1 MiB  128.9 MiB Linux ext2/3
CentOS5:xvda3                      9.5 GiB    2.8 GiB    6.7 GiB Linux ext2/3
CentOS5:xvda2                      0 bytes                      Linux swap
F9-services:xvda1                121.6 MiB  23.9 MiB  97.7 MiB Linux ext2/3
F9-services:xvda3                  9.5 GiB    2.1 GiB    7.4 GiB Linux ext2/3
OEL_5.1:xvda1                    152.0 MiB  23.6 MiB  128.4 MiB Linux ext2/3
OEL_5.1:xvda2                      19.0 GiB  10.1 GiB    8.9 GiB Linux ext2/3
OEL_5.1:xvda3                      0 bytes                      Linux swap
OEL_5.1:sda4                        8.5 GiB    7.3 GiB    1.2 GiB Linux ext2/3
OEL_5.1:sdc1                      76.0 GiB  67.6 GiB    8.4 GiB Linux ext2/3
F9-sound:xvda1                    121.6 MiB  24.0 MiB  97.6 MiB Linux ext2/3
F9-sound:xvda3                      9.5 GiB    2.0 GiB    7.5 GiB Linux ext2/3
F9-sound:xvdd1                    161.5 GiB  139.5 GiB  22.0 GiB Linux ext2/3

This is great for telling me available space but whats OEL_5.1:sdc1 mounted to on dom0? Is it /dev/mapper/nfsStorage-Cobbler or /dev/mapper/nfsStorage-DigitalPhotos?

I know I can ultimately get the information by reading the config files:

ie:

Code:

[root@firefly-dom0 ~]# grep xvda3 /var/lib/xend/domains/*/*
/var/lib/xend/domains/174b6882-230c-bdfd-ec19-b25bf8191dc8/config.sxp:        (dev xvda3:disk)
/var/lib/xend/domains/c5804c59-c283-6747-66b8-48fb6e15920b/config.sxp:            (dev xvda3:disk)
/var/lib/xend/domains/c5804c59-c283-6747-66b8-48fb6e15920c/config.sxp:            (dev xvda3:disk)
/var/lib/xend/domains/c70b2713-aa47-469e-4ee3-2fe59b8e064f/config.sxp:            (dev xvda3:disk)

Just wondering if there was already an all-in-one command I could use without writing some elaborate script.


All times are GMT -5. The time now is 10:53 PM.