给华章看的常用 命令

挂载pve iso到idrac

racadm remoteimage -c -u root -p calvin -l '10.10.0.9:/mnt/proxmox-ve_6.0-1.iso'

断开链接

racadm remoteimage -d

设置电源策略-性能优先

racadm set bios.SysProfileSettings.SysProfile Custom
racadm set BIOS.SysProfileSettings.ProcPwrPerf MaxPerf
racadm jobqueue create BIOS.Setup.1-1
racadm serveraction powercycle

nvme存储用lvm绑定做raid

[root@dbw10amb ~]# parted -s --align optimal /dev/nvme3n1 -- mklabel gpt mkpart  primary ext4 0% 100%
[root@dbw10amb ~]# parted -s --align optimal /dev/nvme2n1 -- mklabel gpt mkpart  primary ext4 0% 100%
[root@dbw10amb ~]# parted -s --align optimal /dev/nvme1n1 -- mklabel gpt mkpart  primary ext4 0% 100%
[root@dbw10amb ~]# parted -s --align optimal /dev/nvme0n1 -- mklabel gpt mkpart  primary ext4 0% 100%


[root@dbw10amb ~]# pvcreate  /dev/nvme0n1p1  /dev/nvme1n1p1  /dev/nvme2n1p1  /dev/nvme3n1p1
  Physical volume "/dev/nvme3n1p1" successfully created.
  Physical volume "/dev/nvme2n1p1" successfully created.
  Physical volume "/dev/nvme1n1p1" successfully created.
  Physical volume "/dev/nvme0n1p1" successfully created.


[root@dbw10amb ~]# vgcreate new-ssd-vg /dev/nvme0n1p1  /dev/nvme1n1p1  /dev/nvme2n1p1  /dev/nvme3n1p1
  Volume group "new-ssd-vg" successfully created

lvcreate --type raid10 -i 2 -m 1 -L 10G --maxrecoveryrate 128 -n my_lv new-ssd-vg
lvcreate --type raid5 -i 2  -n  my_lv new-ssd-vg
#这里的i 是条带数目,根据磁盘的个数设定,--maxrecoveryrate 是恢复速率限制,防止同步进程占用太多写带宽影响性能
lvcreate -l 60%VG -n mylv testvg
lvcreate -l 100%FREE -n yourlv testvg

你可能感兴趣的:(给华章看的常用 命令)