olopez32 / ganeti

Automatically exported from code.google.com/p/ganeti
0 stars 0 forks source link

hcheck reports missing disk space for reserved-lvs #711

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
[ganeti 2.9.2]

You can use "gnt-cluster modify --reserved-lvs=...." to mark certain logical 
volumes to be ignored by ganeti. This allows you to allocate LVs from ganeti's 
VG for other purposes on the host, and stops them being reported as erroneous 
by gnt-cluster verify.

However, hcheck still reports these logical volumes as "missing" disk space.

# hcheck -m cloud.example.net
Warning: cluster has inconsistent data:
  - node master.example.net is missing -7 MB ram and 35 GB disk
  - node node1.example.net is missing -920 MB ram and 31 GB disk

(Aside: the RAM calculation issue is already noted in ticket 127)

lvscan on the two nodes shows:

# lvscan
  ACTIVE            '/dev/xenvg/root' [9.31 GiB] inherit
  ACTIVE            '/dev/xenvg/swap' [7.45 GiB] inherit
  ACTIVE            '/dev/xenvg/var' [18.62 GiB] inherit
  ACTIVE            '/dev/xenvg/8564e7de-dc38-43b2-ac1f-be857f3fcce3.disk0_data' [50.00 GiB] inherit
  ACTIVE            '/dev/xenvg/8564e7de-dc38-43b2-ac1f-be857f3fcce3.disk0_meta' [128.00 MiB] inherit

(Total host LVs: 35.38GB)

# lvscan
  ACTIVE            '/dev/xenvg/root' [5.59 GiB] inherit
  ACTIVE            '/dev/xenvg/swap' [7.45 GiB] inherit
  ACTIVE            '/dev/xenvg/var' [18.62 GiB] inherit
  ACTIVE            '/dev/xenvg/8564e7de-dc38-43b2-ac1f-be857f3fcce3.disk0_data' [50.00 GiB] inherit
  ACTIVE            '/dev/xenvg/8564e7de-dc38-43b2-ac1f-be857f3fcce3.disk0_meta' [128.00 MiB] inherit

(Total host LVs: 31.66GB)

So the "missing" disk space is exactly that allocated to the --reserved-lvs

Original issue reported on code.google.com by bcandler...@googlemail.com on 7 Feb 2014 at 9:17

GoogleCodeExporter commented 9 years ago
Nice :)

Original comment by dawason...@gmail.com on 7 Feb 2014 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by hel...@google.com on 12 Feb 2014 at 3:44

GoogleCodeExporter commented 9 years ago
Milestone needs updating? This problem still exists in 2.11.5

Original comment by bcandler...@googlemail.com on 6 Oct 2014 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by hel...@google.com on 6 Oct 2014 at 8:58

GoogleCodeExporter commented 9 years ago
ENOTIME, so back to the pool

Original comment by aeh...@google.com on 6 Oct 2014 at 3:19