reliable-helper-system

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0

README

HwameiStor Reliable Helper System

Introduction

The Reliable-helper-system is one of subsidiary components of the HwameiStor. It provides the reliability maintenance functionality such as replacedisk which support after migrating the data on the hard disk, to perform the hard disk replacement operation .

Reliable-helper-system will work for LVM volumes now. At present, the RHS project is still in the alpha stage.

Architecture of HwameiStor Reliable Helper System

image

Concepts

ReplaceDisk(RD): A RD resource object represents one replace disk task on the host.

LocalVolumeMigrate(LVM): The way to migrate and backup replaced disk data to disks of other nodes.

Usage

If you want to entirely deploy HwameiStor, please refer to here. If you just want to deploy RHS separately, you can refer to the following installation steps.

Install Reliable Helper System

1. Clone this repo to your machine:
# git clone https://github.com/hwameistor/reliable-helper-system.git
2. Change to deploy directory:
# cd deploy
3. Deploy CRDs and run reliable-helper-system
3.1 Deploy RHS CRDs
# kubectl apply -f deploy/crds/
3.2 Deploy RBAC CRs and operators
# kubectl apply -f deploy/
3.3 Deploy RHS Instance
# cd deploy/samples
cat > ./replacedisk_cr.yaml <<- EOF
apiVersion: hwameistor.io/v1alpha1
kind: ReplaceDisk
metadata:
  name: <anyname>
  namespace: hwameistor
spec:
  driverGroup: <driver-group>
  sltId: <sltid>
  eId: <eid>
  nodeName: <node-name>
  oldUuid: <old-uuid>
  newUuid: <new-uuid>
  replaceDiskStage: ""
EOF
$ kubectl apply -f ./replacedisk_cr.yaml
4. Get ReplaceDisk Infomation
$ kubectl  get replacedisk
NAME                       AGE
replacedisk-sample-node1   21h

kuebctl get replacedisk <name> -o yaml View more information about replacedisk.

Feedbacks

Please submit any feedback and issue at: Issues

Directories

Path Synopsis
cmd
pkg
apis/client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
apis/client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
apis/client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
apis/client/clientset/versioned/typed/hwameistor/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
apis/client/clientset/versioned/typed/hwameistor/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
apis/hwameistor
Package hwameistor contains hwameistor API versions.
Package hwameistor contains hwameistor API versions.
apis/hwameistor/v1alpha1
Package v1alpha1 contains API Schema definitions for the localstorage v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=hwameistor.io Package v1alpha1 contains v1alpha1 API versions.
Package v1alpha1 contains API Schema definitions for the localstorage v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=hwameistor.io Package v1alpha1 contains v1alpha1 API versions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL