Thursday, 26 November 2020

Proxmox pvesem

 root@venus:~# pvesm status

zfs error: cannot open 'VMs': no such pool


zfs error: cannot open 'VMs': no such pool


could not activate storage 'VMs', zfs error: cannot open 'VMs': no such pool


Name             Type     Status           Total            Used       Available        %

VMs           zfspool   inactive               0               0               0    0.00%

local             dir     active        34571888         2656612        30129420    7.68%

local-lvm     lvmthin     active        79556608               0        79556608    0.00%

root@venus:~# pvesm remove VMs

root@venus:~# pvesm status

Name             Type     Status           Total            Used       Available        %

local             dir     active        34571888         2656624        30129408    7.68%

local-lvm     lvmthin     active        79556608               0        79556608    0.00%


Proxmox Device Mapper

 


If your device is shown as Device Mapper, you can't create a new filesystem.

Try these commands:

root@venus:/# sgdisk --zap-all /dev/sdc

Creating new GPT entries.

GPT data structures destroyed! You may now partition the disk using fdisk or

other utilities.


See this thread:

ProxMox - Clearing disks for use | ServeTheHome Forums


Sunday, 22 November 2020

Delete ZFS on Proxmox

 root@pve:~# zpool destroy Local-Proxmox

root@pve:~# zpool list

no pools available

root@pve:~# dd if=/dev/zero of=/dev/sdb bs=4096 count=35

35+0 records in

35+0 records out

143360 bytes (143 kB, 140 KiB) copied, 0.000806736 s, 178 MB/s


root@pve:~# dd if=/dev/zero of=/dev/sdb bs=4096 count=35 seek=$(($(blockdev --getsz /dev/sdb)*512/4096 - 35))

35+0 records in

35+0 records out

143360 bytes (143 kB, 140 KiB) copied, 0.00118329 s, 121 MB/s

Thursday, 19 November 2020

Reduce fan speed on my Dell R710

Refer to: https://www.reddit.com/r/homelab/comments/b20p7o/super_easy_way_to_make_an_r710_really_quiet


 [root@database client]# yum install ipmitool

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager

Resolving Dependencies

--> Running transaction check

---> Package ipmitool.x86_64 0:1.8.18-9.el7_7 will be installed

--> Processing Dependency: OpenIPMI-modalias for package: ipmitool-1.8.18-9.el7_7.x86_64

--> Running transaction check

---> Package OpenIPMI-modalias.x86_64 0:2.0.27-1.el7 will be installed

--> Processing Dependency: OpenIPMI for package: OpenIPMI-modalias-2.0.27-1.el7.x86_64

--> Running transaction check

---> Package OpenIPMI.x86_64 0:2.0.27-1.el7 will be installed

--> Processing Dependency: OpenIPMI-libs = 2.0.27-1.el7 for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Processing Dependency: libOpenIPMI.so.0()(64bit) for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Processing Dependency: libOpenIPMIcmdlang.so.0()(64bit) for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Processing Dependency: libOpenIPMIglib.so.0()(64bit) for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Processing Dependency: libOpenIPMIposix.so.0()(64bit) for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Processing Dependency: libOpenIPMIui.so.1()(64bit) for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Processing Dependency: libOpenIPMIutils.so.0()(64bit) for package: OpenIPMI-2.0.27-1.el7.x86_64

--> Running transaction check

---> Package OpenIPMI-libs.x86_64 0:2.0.27-1.el7 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


==============================================================================================================================================================================================

 Package                                          Arch                                  Version                                       Repository                                         Size

==============================================================================================================================================================================================

Installing:

 ipmitool                                         x86_64                                1.8.18-9.el7_7                                rhel-7-server-rpms                                442 k

Installing for dependencies:

 OpenIPMI                                         x86_64                                2.0.27-1.el7                                  rhel-7-server-rpms                                243 k

 OpenIPMI-libs                                    x86_64                                2.0.27-1.el7                                  rhel-7-server-rpms                                523 k

 OpenIPMI-modalias                                x86_64                                2.0.27-1.el7                                  rhel-7-server-rpms                                 16 k


Transaction Summary

==============================================================================================================================================================================================

Install  1 Package (+3 Dependent packages)


Total download size: 1.2 M

Installed size: 3.8 M

Is this ok [y/d/N]: y

Downloading packages:

(1/4): OpenIPMI-2.0.27-1.el7.x86_64.rpm                                                                                                                                | 243 kB  00:00:00

(2/4): OpenIPMI-libs-2.0.27-1.el7.x86_64.rpm                                                                                                                           | 523 kB  00:00:00

(3/4): OpenIPMI-modalias-2.0.27-1.el7.x86_64.rpm                                                                                                                       |  16 kB  00:00:00

(4/4): ipmitool-1.8.18-9.el7_7.x86_64.rpm                                                                                                                              | 442 kB  00:00:00

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                                                         1.5 MB/s | 1.2 MB  00:00:00

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : OpenIPMI-modalias-2.0.27-1.el7.x86_64                                                                                                                                      1/4

  Installing : OpenIPMI-libs-2.0.27-1.el7.x86_64                                                                                                                                          2/4

  Installing : OpenIPMI-2.0.27-1.el7.x86_64                                                                                                                                               3/4

  Installing : ipmitool-1.8.18-9.el7_7.x86_64                                                                                                                                             4/4

WARNING: ipmi_devintf module isn't available.

WARNING: ipmi_msghandler module isn't available.

  Verifying  : OpenIPMI-libs-2.0.27-1.el7.x86_64                                                                                                                                          1/4

  Verifying  : ipmitool-1.8.18-9.el7_7.x86_64                                                                                                                                             2/4

  Verifying  : OpenIPMI-2.0.27-1.el7.x86_64                                                                                                                                               3/4

  Verifying  : OpenIPMI-modalias-2.0.27-1.el7.x86_64                                                                                                                                      4/4


Installed:

  ipmitool.x86_64 0:1.8.18-9.el7_7


Dependency Installed:

  OpenIPMI.x86_64 0:2.0.27-1.el7                            OpenIPMI-libs.x86_64 0:2.0.27-1.el7                            OpenIPMI-modalias.x86_64 0:2.0.27-1.el7


Complete!

[root@database client]# ipmitool

Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory

[root@database client]# ipmitool -H 192.168.1.8 -I lanplus -U root -P P@ssw0rd mc info

Device ID                 : 32

Device Revision           : 0

Firmware Revision         : 2.85

IPMI Version              : 2.0

Manufacturer ID           : 674

Manufacturer Name         : DELL Inc

Product ID                : 256 (0x0100)

Product Name              : Unknown (0x100)

Device Available          : yes

Provides Device SDRs      : yes

Additional Device Support :

    Sensor Device

    SDR Repository Device

    SEL Device

    FRU Inventory Device

    IPMB Event Receiver

    Bridge

    Chassis Device

Aux Firmware Rev Info     :

    0x00

    0x04

    0x00

    0x00






Thursday, 5 November 2020

Promox Nag

 Learnt a new term .. :-)


https://gist.github.com/whiskerz007/53c6aa5d624154bacbbc54880e1e3b2a