Posts

Showing posts from October, 2019

lvm cluster

[root@localhost ~]# fdisk /dev/sdb WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): n Partition number (1-128, default 1): First sector (34-20971486, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-20971486, default 20971486): +512MB                                      Created partition 1 Command (m for help): wq The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@localhost ~]# pvcreate /dev/sdb1 WARNING: ext4 signature detected on /dev/sdb1 at offset 1080. Wipe it? [y/n]: y   Wiping ext4 signature on /dev/sdb1.   Physical volume "/dev/sdb1" successfully created. ...

gfs2 cluster

WARNINGS: No stonith devices and stonith-enabled is not false Stack: corosync Current DC: NONE Last updated: Sat Oct 26 22:32:30 2019 Last change: Sat Oct 26 22:19:04 2019 by root via cibadmin on cluster2 2 nodes configured 1 resource configured Node cluster1: UNCLEAN (offline) Node cluster2: UNCLEAN (offline) Full list of resources:  Resource Group: halvmfs      halvm (ocf::heartbeat:LVM): Stopped Daemon Status:   corosync: active/disabled   pacemaker: active/disabled   pcsd: active/enabled [root@cluster1 ~]# mkdir /xfs [root@cluster1 ~]# clear [root@cluster1 ~]# pcs resource create xfsfs filesystem device="/dev/vg/cluster" directory="/xfs" Assumed agent name 'ocf:heartbeat:Filesystem' (deduced from 'filesystem') Error: required resource option 'fstype' is missing, use --force to override [root@cluster1 ~]# pcs status^C [root@cluster1 ~]#  pcs resource create xfsfs filesystem device="/dev/vg/cluster...