twitter linkedin youtube
  • About
  • Blog
  • My Services
  • Twitter
  • LinkedIn
  • Email
All tags

    Extending a Linux LVM volume in VMWare

    High level overview The high level steps are as follows 1. VMWare – extend filesystem 2. fdisk -l – check sizes before rescans 3. To scan an existing device: a. echo 1 > /sys/block/{device}/device/rescan 4. To scan for a new device a. echo "- - -"…

    Read More
    • linux
    • LVM

    Dell RAID for PowerEdge Servers during CentOS 7.2 kickstart

    Here's a guide outlining how to perform hardware RAID actions (e.g. wipe the RAID configuration, create a new RAID-1 virtual disk etc) on a Dell PowerEdge server (Perc i810) during a CentOS kickstart installation. For this example we are building this for CentOS 7.2, however the…

    Read More
    • linux
    • centos
    • dell
    • raid

    Pulp rpm repo - symlinked files

    It appears that when using pulp (http://www.pulpproject.org/) to synchronise and manage yum repositories, pulp categorises a repository with the following in mind * OS Major Release Number (E.g. CentOS 7) * OS Minor Release number (e.g. CentOS 7.2) * These are stored under the release number, e.…

    Read More
    • linux
    • rpm
    • pulp

    rpm quick reference - useful stuff

    Useful rpm commands rpm -qa | grep [string] Will show if the RPM you specify (in the string) is installed rpm -qf [/path/somefile] will show which package provides the specified file rpm -ql [packagename] will show all files contained in the installed package specified rpm -qlp [package.rpm] will list…

    Read More
    • linux
    • rpm

    sed replacing a string in a file

    Simple example of replacement of a password field in /etc/shadow. usern=robbie encpass= :$1$CQoPk7Zh$370xDLmeGD9m4aF/ciIlC sed -i "s/^${usern}\:[^\:]\{1,100\}\:/${usern}\:${encpass}\:/" /etc/shadow Probably some more improvements here (e.g. determine maximum hashed password string length rather than "up to 100"…

    Read More
    • linux
    • sed

    Load more posts
    Subscribe!
    All content copyright © 2025 • All rights reserved.
    Proudly published with Ghost