Calculation of disk allocation

Discussion in 'Pre-Deployment: Getting Started and Installation' started by Machiasiaweb, Apr 12, 2015.

  1. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    163
    Hello,

    I have interested to know how to calculate and allocate of disk space when installing of PCS cloud storage in single node.

    I have setup a VM with following disk allocation

    1 x 80G
    4 x 40G

    OS now installed at 80G partition

    Installation using default setup without any partition assignment. After completed setup including PVA client and OS update.

    It discover following disk allocation.

    Did anyone can advise how's to calculate the partition of following?
    /vz
    /pstorage/pccs1


    Some environment output for reference.
    ----
    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/vg_pcss1-lv_root
    24G 2.7G 20G 12% /
    tmpfs 1.9G 1.2M 1.9G 1% /dev/shm
    /dev/sdb1 2.0G 33M 1.8G 2% /boot
    /dev/mapper/vg_pcss1-lv_pstorage_pccs1cs
    188G 94G 85G 53% /pstorage/pccs1-cs
    /dev/mapper/vg_pcss1-lv_vz
    20G 2.2G 17G 12% /vz
    pstorage://pccs1 178G 102G 76G 58% /pstorage/pccs1

    # cat /etc/fstab

    #
    # /etc/fstab
    # Created by anaconda on Fri Apr 10 09:23:48 2015
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    /dev/mapper/vg_pcss1-lv_root / ext4 defaults 1 1
    UUID=04533d3f-b3ec-4f08-89c5-464bd9e5c1eb /boot ext4 defaults 1 2
    /dev/mapper/vg_pcss1-lv_pstorage_pccs1cs /pstorage/pccs1-cs ext4 defaults,noatime 1 2
    /dev/mapper/vg_pcss1-lv_vz /vz ext4 defaults,noatime 1 2
    /dev/mapper/vg_pcss1-lv_swap swap swap defaults 0 0
    tmpfs /dev/shm tmpfs defaults,nodev,nosuid,noexec 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    bused /buse fuse.bused noauto 0 0
    pstorage://pccs1 /pstorage/pccs1 fuse.pstorage defaults 0 0

    [root@pcss1 ~]# lvdisplay
    --- Logical volume ---
    LV Path /dev/vg_pcss1/lv_swap
    LV Name lv_swap
    VG Name vg_pcss1
    LV UUID gIhhFB-DyIZ-r8zM-WpLi-nEOG-ls9h-Cu3iAP
    LV Write Access read/write
    LV Creation host, time pcss1.vpshosting.hk, 2015-04-10 09:22:34 +0800
    LV Status available
    # open 1
    LV Size 3.86 GiB
    Current LE 988
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:0

    --- Logical volume ---
    LV Path /dev/vg_pcss1/lv_pstorage_pccs1cs
    LV Name lv_pstorage_pccs1cs
    VG Name vg_pcss1
    LV UUID OWcP85-LQG2-tZKc-B2rL-Gmdd-9wSZ-VvE1hp
    LV Write Access read/write
    LV Creation host, time pcss1.vpshosting.hk, 2015-04-10 09:22:34 +0800
    LV Status available
    # open 1
    LV Size 190.13 GiB
    Current LE 48673
    Segments 4
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:2

    --- Logical volume ---
    LV Path /dev/vg_pcss1/lv_vz
    LV Name lv_vz
    VG Name vg_pcss1
    LV UUID C1EFjE-7lry-JLrw-0PGB-UD9R-HoBD-u197wK
    LV Write Access read/write
    LV Creation host, time pcss1.vpshosting.hk, 2015-04-10 09:22:47 +0800
    LV Status available
    # open 1
    LV Size 20.00 GiB
    Current LE 5119
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:3

    --- Logical volume ---
    LV Path /dev/vg_pcss1/lv_root
    LV Name lv_root
    VG Name vg_pcss1
    LV UUID tZQ0A7-DXaZ-zpvF-4olb-VPJw-fYro-roY663
    LV Write Access read/write
    LV Creation host, time pcss1.vpshosting.hk, 2015-04-10 09:22:48 +0800
    LV Status available
    # open 1
    LV Size 24.00 GiB
    Current LE 6143
    Segments 2
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 253:1

    ***
    # pvdisplay
    --- Physical volume ---
    PV Name /dev/sda1
    VG Name vg_pcss1
    PV Size 40.00 GiB / not usable 3.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 10239
    Free PE 0
    Allocated PE 10239
    PV UUID nimP4F-O2Lk-laL0-eYP1-ESuH-AqrH-tSApZB

    --- Physical volume ---
    PV Name /dev/sdb2
    VG Name vg_pcss1
    PV Size 78.00 GiB / not usable 3.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 19967
    Free PE 0
    Allocated PE 19967
    PV UUID WBgIam-kKUQ-dQX7-kqF5-00Rp-0hyY-gBSMip

    --- Physical volume ---
    PV Name /dev/sdc1
    VG Name vg_pcss1
    PV Size 40.00 GiB / not usable 3.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 10239
    Free PE 0
    Allocated PE 10239
    PV UUID eg2Yvg-CTlK-6JvV-psDk-uX4w-CRdJ-GPgZyv

    --- Physical volume ---
    PV Name /dev/sdd1
    VG Name vg_pcss1
    PV Size 40.00 GiB / not usable 3.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 10239
    Free PE 0
    Allocated PE 10239
    PV UUID 06OdjN-4Lou-036V-Pboy-daYg-IijB-tMfId9

    --- Physical volume ---
    PV Name /dev/sde1
    VG Name vg_pcss1
    PV Size 40.00 GiB / not usable 3.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 10239
    Free PE 0
    Allocated PE 10239
    PV UUID MUMIQH-WwQx-sJfM-mgof-Alm1-iQYA-3rrjFd
    ***

    ------------------------------

    Thanks!

     
    Last edited: Apr 12, 2015
  2. SteveITS

    SteveITS Mega Poster

    Messages:
    210
    According to this your chunk server disk is 188 GB in size with 94 GB used. Mostly you can ignore that, and the relevant part is that your cluster is 178 GB in total usable size with 102 GB used and 76 GB free.

    "pstorage -c pccs1 top" will show total space after replications, and total free space on the individual disks:
    Space: [OK] allocatable 1.52TB of 1.62TB, free 4.80TB of 4.88TB
     
  3. lidaoo

    lidaoo Bit Poster

    Messages:
    2
    thanks for reply. thats good
     
  4. lidaoo

    lidaoo Bit Poster

    Messages:
    2
    Best Answer

Share This Page