Revision 9b94905f
b/NEWS | ||
---|---|---|
43 | 43 |
- ``/2/nodes/[node_name]/storage/repair`` |
44 | 44 |
|
45 | 45 |
- Added OpCodes to evacuate or migrate all instances on a node |
46 |
- Added new command to list physical volumes on nodes (``gnt-node
|
|
47 |
physical-volumes``) and to modify them (``gnt-node modify-volume``)
|
|
46 |
- Added new command to list storage elements on nodes (``gnt-node
|
|
47 |
list-storage``) and modify them (``gnt-node modify-storage``)
|
|
48 | 48 |
- Added new ssconf files with master candidate IP address |
49 | 49 |
(``ssconf_master_candidates_ips``), node primary IP address |
50 | 50 |
(``ssconf_node_primary_ips``) and node secondary IP address |
... | ... | |
57 | 57 |
--auto``) |
58 | 58 |
- Added ``gnt-instance recreate-disks`` to re-create (empty) disks |
59 | 59 |
after catastrophic data-loss |
60 |
- Added ``gnt-node repair-volume`` command to repair damanged LVM volume
|
|
60 |
- Added ``gnt-node repair-storage`` command to repair damaged LVM volume
|
|
61 | 61 |
groups |
62 | 62 |
- Added ``gnt-instance move`` command to move instances |
63 | 63 |
- Added ``gnt-cluster watcher`` command to control watcher |
... | ... | |
522 | 522 |
- Other small bugfixes |
523 | 523 |
|
524 | 524 |
.. vim: set textwidth=72 : |
525 |
.. Local Variables: |
|
526 |
.. mode: rst |
|
527 |
.. fill-column: 72 |
|
528 |
.. End: |
b/man/gnt-node.sgml | ||
---|---|---|
756 | 756 |
</refsect2> |
757 | 757 |
|
758 | 758 |
<refsect2> |
759 |
<title>PHYSICAL-VOLUMES</title>
|
|
759 |
<title>LIST-STORAGE</title>
|
|
760 | 760 |
|
761 | 761 |
<cmdsynopsis> |
762 |
<command>physical-volumes</command>
|
|
762 |
<command>list-storage</command>
|
|
763 | 763 |
<arg>--no-headers</arg> |
764 | 764 |
<arg>--human-readable</arg> |
765 | 765 |
<arg>--separator=<replaceable>SEPARATOR</replaceable></arg> |
... | ... | |
770 | 770 |
</cmdsynopsis> |
771 | 771 |
|
772 | 772 |
<para> |
773 |
Lists all physical volumes and their details from the node(s) provided. |
|
773 |
Lists the available storage units and their details for the |
|
774 |
given node(s). |
|
774 | 775 |
</para> |
775 | 776 |
|
776 | 777 |
<para> |
... | ... | |
855 | 856 |
<para> |
856 | 857 |
Example: |
857 | 858 |
<screen> |
858 |
# gnt-node physical-volumes node5.example.com
|
|
859 |
# gnt-node list-storage node5.example.com
|
|
859 | 860 |
Node Name Size Used Free |
860 | 861 |
node5.example.com /dev/sda7 673.8G 0M 673.8G |
861 | 862 |
node5.example.com /dev/sdb1 698.6G 1.3G 697.4G |
... | ... | |
864 | 865 |
</refsect2> |
865 | 866 |
|
866 | 867 |
<refsect2> |
867 |
<title>MODIFY-VOLUME</title>
|
|
868 |
<title>MODIFY-STORAGE</title>
|
|
868 | 869 |
|
869 | 870 |
<cmdsynopsis> |
870 |
<command>modify-volume</command>
|
|
871 |
<command>modify-storage</command>
|
|
871 | 872 |
<arg><option>--allocatable=yes|no</option></arg> |
872 | 873 |
<sbr> |
873 | 874 |
<arg><replaceable>node</replaceable></arg> |
... | ... | |
876 | 877 |
</cmdsynopsis> |
877 | 878 |
|
878 | 879 |
<para> |
879 |
Modifies storage volumes on a node. Only LVM physical volumes can be |
|
880 |
modified at the moment. They have a storage type of <quote>lvm-pv</quote>. |
|
880 |
Modifies storage volumes on a node. Only LVM physical volumes |
|
881 |
can be modified at the moment. They have a storage type |
|
882 |
of <quote>lvm-pv</quote>. |
|
881 | 883 |
</para> |
882 | 884 |
|
883 | 885 |
<para> |
884 | 886 |
Example: |
885 | 887 |
<screen> |
886 |
# gnt-node modify-volume --allocatable no node5.example.com lvm-pv /dev/sdb1
|
|
888 |
# gnt-node modify-storage --allocatable no node5.example.com lvm-pv /dev/sdb1
|
|
887 | 889 |
</screen> |
888 | 890 |
</para> |
889 | 891 |
</refsect2> |
890 | 892 |
|
891 | 893 |
<refsect2> |
892 |
<title>REPAIR-VOLUME</title>
|
|
894 |
<title>REPAIR-STORAGE</title>
|
|
893 | 895 |
|
894 | 896 |
<cmdsynopsis> |
895 |
<command>repair-volume</command>
|
|
897 |
<command>repair-storage</command>
|
|
896 | 898 |
<arg><replaceable>node</replaceable></arg> |
897 | 899 |
<arg><replaceable>storage-type</replaceable></arg> |
898 | 900 |
<arg><replaceable>volume-name</replaceable></arg> |
899 | 901 |
</cmdsynopsis> |
900 | 902 |
|
901 | 903 |
<para> |
902 |
Repairs a storage volume on a node. Only LVM volume groups can be
|
|
903 |
repaired at this time. They have the storage type |
|
904 |
Repairs a storage volume on a node. Only LVM volume groups can |
|
905 |
be repaired at this time. They have the storage type
|
|
904 | 906 |
<quote>lvm-vg</quote>. |
905 | 907 |
</para> |
906 | 908 |
|
... | ... | |
918 | 920 |
<para> |
919 | 921 |
Example: |
920 | 922 |
<screen> |
921 |
# gnt-node repair-volume node5.example.com lvm-vg xenvg
|
|
923 |
# gnt-node repair-storage node5.example.com lvm-vg xenvg
|
|
922 | 924 |
</screen> |
923 | 925 |
</para> |
924 | 926 |
</refsect2> |
b/scripts/gnt-node | ||
---|---|---|
458 | 458 |
return 0 |
459 | 459 |
|
460 | 460 |
|
461 |
def ListPhysicalVolumes(opts, args):
|
|
461 |
def ListStorage(opts, args):
|
|
462 | 462 |
"""List physical volumes on node(s). |
463 | 463 |
|
464 | 464 |
@param opts: the command line options selected by the user |
... | ... | |
530 | 530 |
return 0 |
531 | 531 |
|
532 | 532 |
|
533 |
def ModifyVolume(opts, args):
|
|
533 |
def ModifyStorage(opts, args):
|
|
534 | 534 |
"""Modify storage volume on a node. |
535 | 535 |
|
536 | 536 |
@param opts: the command line options selected by the user |
... | ... | |
557 | 557 |
SubmitOpCode(op) |
558 | 558 |
|
559 | 559 |
|
560 |
def RepairVolume(opts, args):
|
|
560 |
def RepairStorage(opts, args):
|
|
561 | 561 |
"""Repairs a storage volume on a node. |
562 | 562 |
|
563 | 563 |
@param opts: the command line options selected by the user |
... | ... | |
667 | 667 |
ListVolumes, [ArgNode()], |
668 | 668 |
[NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT], |
669 | 669 |
"[<node_name>...]", "List logical volumes on node(s)"), |
670 |
'physical-volumes': (
|
|
671 |
ListPhysicalVolumes, ARGS_MANY_NODES,
|
|
670 |
'list-storage': (
|
|
671 |
ListStorage, ARGS_MANY_NODES,
|
|
672 | 672 |
[NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT, _STORAGE_TYPE_OPT], |
673 | 673 |
"[<node_name>...]", "List physical volumes on node(s)"), |
674 |
'modify-volume': (
|
|
675 |
ModifyVolume,
|
|
674 |
'modify-storage': (
|
|
675 |
ModifyStorage,
|
|
676 | 676 |
[ArgNode(min=1, max=1), |
677 | 677 |
ArgChoice(min=1, max=1, choices=_MODIFIABLE_STORAGE_TYPES), |
678 | 678 |
ArgFile(min=1, max=1)], |
679 | 679 |
[ALLOCATABLE_OPT], |
680 | 680 |
"<node_name> <storage_type> <name>", "Modify storage volume on a node"), |
681 |
'repair-volume': (
|
|
682 |
RepairVolume,
|
|
681 |
'repair-storage': (
|
|
682 |
RepairStorage,
|
|
683 | 683 |
[ArgNode(min=1, max=1), |
684 | 684 |
ArgChoice(min=1, max=1, choices=_REPAIRABLE_STORAGE_TYPES), |
685 | 685 |
ArgFile(min=1, max=1)], |
Also available in: Unified diff