Find the answer to your Linux question:
Results 1 to 6 of 6
We have to build a new Linux system under VMware identical to an existing one under VMWare. I got the CPU and memory info of the existing Linux system by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    18

    Total disk space of my system


    We have to build a new Linux system under VMware identical to an existing one under VMWare. I got the CPU and memory info of the existing Linux system by using lscpu and free -m command

    I need to find out how much disk space the existing Linux VM. has so that Ican give the new one the same amount of disk space. I used the df command. But I need some help to understand the output. Here is the output I got

    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda2 26G 5.3G 19G 23% /
    devtmpfs 3.9G 140K 3.9G 1% /dev
    tmpfs 3.9G 0 3.9G 0% /dev/shm
    /dev/sda1 494M 44M 425M 10% /boot
    /dev/mapper/vg0-lvhome
    4.0G 1.1G 2.7G 29% /home
    /dev/mapper/vg0-lvopt
    6.0G 2.7G 3.0G 48% /opt
    /dev/mapper/vg0-lvsrv
    7.9G 147M 7.4G 2% /srv
    /dev/mapper/vg0-lvtmp
    4.0G 2.4G 1.4G 64% /tmp
    /dev/mapper/vg0-lvusr
    7.9G 2.9G 4.7G 38% /usr
    /dev/mapper/vg0-lvvar
    6.0G 3.0G 2.7G 53% /var
    /dev/mapper/vg0-lvscratch
    5.0G 1.6G 3.1G 35% /var/scratch
    /dev/mapper/vg1-lvoracle
    5.0G 3.5G 1.3G 74% /opt/oracle
    /dev/mapper/vg1-lvinformix
    2.0G 784M 1.2G 41% /opt/informix
    //10.254.233.307/EMAIL_INBOUND
    40G 28G 13G 70% /data/sFTP/clnt_email_in
    //10.254.233.307/EMAIL_OUTBOUND
    40G 28G 13G 70% /data/sFTP/clnt_email_out
    linuxsvr01.hosts.accounting.ca:/data
    25G 1.4G 23G 6% /remote-var/mqm/data
    linuxsvr01.hosts.accounting.ca:/mqsi
    5.0G 306M 4.4G 7% /remote-var/prod/mqsi
    linuxsvr01.hosts.accounting.ca:/log
    9.9G 199M 9.2G 3% /remote-var/mqm/log

    The first column is size. Do I just add up everything in the first colimna and that is the current size of the disk space that the current Linux VM has ?
    We are just planners and not any Linux expert. Is there other better ways to find out how much disk space the current linux system has ? We have no access to the VMWare settings. So we can only go by what is showing by linux commands.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    a new Linux system under VMware identical to an existing one under VMWare.
    Instead of worrying about space/ram issues,why not simply clone the existing VM and create a new one ? that's not possible?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    18
    Thanks for the quick response. We can not clone. We have to re-build using the same spec. We do not own the original VM.

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757
    I haven't tried such things before. Other than parsing 'df' output - may be try using
    Code:
    fdisk -l
    - but fdisk will be much harder to parse than df.
    With df -hT just get the total available size and its file system type - Then try to re-create the same.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  5. #5
    Just Joined!
    Join Date
    May 2007
    Posts
    18
    I tried fdisk -l before. For some reason it does not return anything. I am running Opensuse Enterprise server 11

  6. #6
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,474
    fdisk may need to be run as root
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •