daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jul 13th, 2012 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #vgdisplay
  2. --- Volume group ---
  3.   VG Name               VirtualMachines
  4.   System ID            
  5.   Format                lvm2
  6.   Metadata Areas        1
  7.   Metadata Sequence No  12
  8.   VG Access             read/write
  9.   VG Status             resizable
  10.   MAX LV                0
  11.   Cur LV                5
  12.   Open LV               0
  13.   Max PV                0
  14.   Cur PV                1
  15.   Act PV                1
  16.   VG Size               100,00 GiB
  17.   PE Size               4,00 MiB
  18.   Total PE              25599
  19.   Alloc PE / Size       24832 / 97,00 GiB
  20.   Free  PE / Size       767 / 3,00 GiB
  21.   VG UUID               jWu1yz-rlwM-xAGd-KA7f-cKfx-4MqG-K8ochy
  22.  
  23. Som ni ser bara 100GiB i den här volymgruppen.
  24. #pvdisplay
  25.  
  26.  --- Physical volume ---
  27.   PV Name               /dev/dm-0
  28.   VG Name               VirtualMachines
  29.   PV Size               100,00 GiB / not usable 4,00 MiB
  30.   Allocatable           yes
  31.   PE Size               4,00 MiB
  32.   Total PE              25599
  33.   Free PE               767
  34.   Allocated PE          24832
  35.   PV UUID               ClbLQb-wkNp-c6tX-K3g6-jMSx-G1xM-yc1sP4
  36.  
  37. Alltså alla fysiska volymer som är med i Virtual machines är /dev/dm-0.
  38.  
  39. Det i sin tur är
  40. #lvdisplay|awk  '/LV Name/{n=$3} /Block device/{d=$3; sub(".*:","dm-",d); print d,n;}'
  41. dm-0 /dev/main/dalnix-lun0
  42. dm-2 /dev/main/websites
  43. dm-4 /dev/main/vmail
  44. dm-3 /dev/VirtualMachines/vm-114-disk-1
  45.  
  46. och jag kollar således på:
  47.  
  48. #lvdisplay
  49.  --- Logical volume ---
  50.   LV Name                /dev/main/dalnix-lun0
  51.   VG Name                main
  52.   LV UUID                ZNAUOO-niD2-E7Bm-d1E2-EQhI-QRgs-72vHxp
  53.   LV Write Access        read/write
  54.   LV Status              available
  55.   # open                 3
  56.   LV Size                1000,00 GiB
  57.   Current LE             256000
  58.   Segments               2
  59.   Allocation             inherit
  60.   Read ahead sectors     auto
  61.   - currently set to     256
  62.   Block device           253:0
  63.  
  64. Här är storleken 1000GiB - som den ska vara. Men ändå i slutändan på andra sidan så är den bara 100Gb(som den först var innan jag gjorde den större. Vad är det som är fel???)
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top