Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2014 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/58193cac627c2644724c to your computer and use it in GitHub Desktop.
Save anonymous/58193cac627c2644724c to your computer and use it in GitHub Desktop.
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
root block1-vg -wi-ao 923.24g
swap_1 block1-vg -wi-ao 7.99g
@samilani
Copy link

samilani commented Jan 9, 2014

root@block1:~# vgdisplay
--- Volume group ---
VG Name cinder-volumes1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 10.91 TiB
PE Size 4.00 MiB
Total PE 2860777
Alloc PE / Size 0 / 0
Free PE / Size 2860777 / 10.91 TiB
VG UUID Ot2Q36-iebu-7zZI-tM2D-O2uD-oto5-63PGcl

sudo env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix cinder-volumes1

cinder-volumes1:11174.91:11174.91:0:Ot2Q36-iebu-7zZI-tM2D-O2uD-oto5-63PGcl

@samilani
Copy link

samilani commented Jan 9, 2014

| cinder-scheduler | controller | nova | enabled | up | 2014-01-09T21:59:41.000000 |
| cinder-volume | block1 | nova | enabled | up | 2014-01-09T21:59:36.000000 |

@samilani
Copy link

samilani commented Jan 9, 2014

/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:11:07.999 4664 INFO cinder.volume.manager [req-2d8a1b72-3b74-4d4d-ac0f-4556a60f14f1 None None] Updating volume status
2014-01-09 22:11:07.999 4664 DEBUG cinder.volume.drivers.lvm [req-2d8a1b72-3b74-4d4d-ac0f-4556a60f14f1 None None] Updating volume stats _update_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:350
2014-01-09 22:11:08.000 4664 DEBUG cinder.openstack.common.processutils [req-2d8a1b72-3b74-4d4d-ac0f-4556a60f14f1 None None] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix cinder-volumes1 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:142
2014-01-09 22:12:08.067 4664 DEBUG cinder.openstack.common.periodic_task [-] Running periodic task VolumeManager._publish_service_capabilities run_periodic_tasks /usr/lib/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:12:08.068 4664 DEBUG cinder.manager [-] Notifying Schedulers of capabilities ... _publish_service_capabilities /usr/lib/python2.7/dist-packages/cinder/manager.py:135
2014-01-09 22:12:08.068 4664 DEBUG cinder.openstack.common.rpc.amqp [-] Making asynchronous fanout cast... fanout_cast /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:640
2014-01-09 22:12:08.068 4664 DEBUG cinder.openstack.common.rpc.amqp [-] UNIQUE_ID is a15cc20f76bd4a6f99016ce9c19c4220. _add_unique_id /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:345
2014-01-09 22:12:08.071 4664 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/dist-packages/amqp/channel.py:88
2014-01-09 22:12:08.071 4664 DEBUG amqp [-] using channel_id: 1 init /usr/lib/python2.7/dist-packages/amqp/channel.py:70
2014-01-09 22:12:08.072 4664 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/dist-packages/amqp/channel.py:420
2014-01-09 22:12:08.072 4664 DEBUG cinder.openstack.common.periodic_task [-] Running periodic task VolumeManager._report_driver_status run_periodic_tasks /usr/lib/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:12:08.072 4664 INFO cinder.volume.manager [-] Updating volume status
2014-01-09 22:12:08.072 4664 DEBUG cinder.volume.drivers.lvm [-] Updating volume stats _update_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:350
2014-01-09 22:12:08.073 4664 DEBUG cinder.openstack.common.processutils [-] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix cinder-volumes1 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:142

@samilani
Copy link

samilani commented Jan 9, 2014

014-01-09 22:18:08.491 4664 DEBUG cinder.manager [-] Notifying Schedulers of capabilities ... _publish_service_capabilities /usr/lib/python2.7/dist-packages/cinder/manager.py:135
2014-01-09 22:18:08.491 4664 DEBUG cinder.openstack.common.rpc.amqp [-] Making asynchronous fanout cast... fanout_cast /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:640
2014-01-09 22:18:08.492 4664 DEBUG cinder.openstack.common.rpc.amqp [-] UNIQUE_ID is 1d4e4f4dd3b640a79ed3c90890c2a9fa. _add_unique_id /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:345
2014-01-09 22:18:08.494 4664 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/dist-packages/amqp/channel.py:88
2014-01-09 22:18:08.494 4664 DEBUG amqp [-] using channel_id: 1 init /usr/lib/python2.7/dist-packages/amqp/channel.py:70
2014-01-09 22:18:08.495 4664 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/dist-packages/amqp/channel.py:420
2014-01-09 22:18:08.495 4664 DEBUG cinder.openstack.common.periodic_task [-] Running periodic task VolumeManager._report_driver_status run_periodic_tasks /usr/lib/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:18:08.496 4664 INFO cinder.volume.manager [-] Updating volume status
2014-01-09 22:18:08.496 4664 DEBUG cinder.volume.drivers.lvm [-] Updating volume stats _update_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:350
2014-01-09 22:18:08.496 4664 DEBUG cinder.openstack.common.processutils [-] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix cinder-volumes1 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:142

@samilani
Copy link

samilani commented Jan 9, 2014

This is host: block1 get_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:341

@samilani
Copy link

samilani commented Jan 9, 2014

22:28:55.222 1828 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/dist-packages/amqp/channel.py:88
2014-01-09 22:28:55.222 1828 DEBUG amqp [-] using channel_id: 1 init /usr/lib/python2.7/dist-packages/amqp/channel.py:70
2014-01-09 22:28:55.223 1828 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/dist-packages/amqp/channel.py:420
2014-01-09 22:28:55.223 1828 DEBUG cinder.openstack.common.periodic_task [req-833d36f9-1c58-4607-a420-c9b88ff5ebaa None None] Running periodic task VolumeManager._report_driver_status run_periodic_tasks /usr/lib/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:28:55.223 1828 INFO cinder.volume.manager [req-833d36f9-1c58-4607-a420-c9b88ff5ebaa None None] Updating volume status
2014-01-09 22:28:55.223 1828 DEBUG cinder.volume.drivers.lvm [req-833d36f9-1c58-4607-a420-c9b88ff5ebaa None None] This is host: block1 get_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:341
2014-01-09 22:28:55.224 1828 DEBUG cinder.volume.drivers.lvm [req-833d36f9-1c58-4607-a420-c9b88ff5ebaa None None] Updating volume stats _update_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:350
2014-01-09 22:28:55.224 1828 DEBUG cinder.openstack.common.processutils [req-833d36f9-1c58-4607-a420-c9b88ff5ebaa None None] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix cinder-volumes1 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:142
2014-01-09 22:29:55.290 1828 DEBUG cinder.openstack.common.periodic_task [-] Running periodic task VolumeManager._publish_service_capabilities run_periodic_tasks /usr/lib/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:29:55.291 1828 DEBUG cinder.manager [-] Notifying Schedulers of capabilities ... _publish_service_capabilities /usr/lib/python2.7/dist-packages/cinder/manager.py:135
2014-01-09 22:29:55.291 1828 DEBUG cinder.openstack.common.rpc.amqp [-] Making asynchronous fanout cast... fanout_cast /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:640
2014-01-09 22:29:55.291 1828 DEBUG cinder.openstack.common.rpc.amqp [-] UNIQUE_ID is b9a9a6e768a74d88b2cc0dc1e68282bd. _add_unique_id /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:345
2014-01-09 22:29:55.294 1828 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/dist-packages/amqp/channel.py:88
2014-01-09 22:29:55.294 1828 DEBUG amqp [-] using channel_id: 1 init /usr/lib/python2.7/dist-packages/amqp/channel.py:70
2014-01-09 22:29:55.295 1828 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/dist-packages/amqp/channel.py:420
2014-01-09 22:29:55.295 1828 DEBUG cinder.openstack.common.periodic_task [-] Running periodic task VolumeManager._report_driver_status run_periodic_tasks /usr/lib/python2.7/dist-packages/cinder/openstack/common/periodic_task.py:176
2014-01-09 22:29:55.295 1828 INFO cinder.volume.manager [-] Updating volume status
2014-01-09 22:29:55.296 1828 DEBUG cinder.volume.drivers.lvm [-] This is host: block1 get_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:341
2014-01-09 22:29:55.296 1828 DEBUG cinder.volume.drivers.lvm [-] Updating volume stats _update_volume_stats /usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py:350
2014-01-09 22:29:55.296 1828 DEBUG cinder.openstack.common.processutils [-] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C LANG=C vgs --noheadings --unit=g -o name,size,free,lv_count,uuid --separator : --nosuffix cinder-volumes1 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:142

@samilani
Copy link

samilani commented Jan 9, 2014

vgs
VG #PV #LV #SN Attr VSize VFree
block1-vg 1 2 0 wz--n- 931.27g 44.00m
cinder-volumes1 1 1 0 wz--n- 10.91t 10.91t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment