mirror of
https://github.com/IntenseWebs/servercode.git
synced 2024-07-07 04:43:00 -05:00
Added disk-kvm.txt and updated disks.txt, minor git changes
This commit is contained in:
parent
8c8264c069
commit
ceeb415798
10
disks-kvm.txt
Normal file
10
disks-kvm.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
# RESIZE - DONE AS ROOT
|
||||
virsh domblklist giti.iweb.city
|
||||
virsh snapshot-list giti.iweb.city
|
||||
virsh snapshot-delete giti.iweb.city 13-09-2022
|
||||
sudo qemu-img resize /var/lib/libvirt/images/giti.iweb.city.qcow2 +20G
|
||||
#Boot into your VM & if not using LVM, then resize disk by finding disk first:
|
||||
df -hT
|
||||
resize2fs /dev/sda
|
||||
|
||||
# USE disks.txt for extending LVM volumes and ext4 partitions
|
|
@ -20,7 +20,8 @@ resize2fs /dev/mapper/zeus--vg-home 50G
|
|||
lvreduce -L50G /dev/mapper/zeus--vg-home
|
||||
# remount /home
|
||||
mount /home
|
||||
# extend the logical volume zeus-vg/var by 20G
|
||||
|
||||
# Extend the logical volume zeus-vg/var by 20G
|
||||
lvextend -L+20G /dev/mapper/zeus--vg-var
|
||||
# resize the ext4 filesystem in logical volume zeus-vg/var to the new volume size
|
||||
resize2fs /dev/mapper/zeus--vg-var
|
||||
|
|
15
git-help.txt
15
git-help.txt
|
@ -3,16 +3,18 @@ sudo apt install git-all
|
|||
git config --global user.name "IntenseWebs"
|
||||
git config --global user.email git@intensewebs.com
|
||||
|
||||
git init --initial-branch=main servercode
|
||||
# ONLY ADD FIRST TIME ONLY (BELOW)
|
||||
git remote add origin git@github.com:IntenseWebs/servercode.git
|
||||
git init --initial-branch=main servercode
|
||||
# git remote add origin git@github.com:IntenseWebs/servercode.git
|
||||
# git remote rm origin
|
||||
git remote add origin gitea@giti.iweb.city:/var/lib/gitea/data/gitea-repositories/iw/cardano-public.git
|
||||
|
||||
git add *
|
||||
git add kvm.txt
|
||||
git commit * -m "Initial Commit"
|
||||
git commit -a
|
||||
git status
|
||||
git config --list
|
||||
git log
|
||||
|
||||
|
||||
# CLONE ON BRANCH
|
||||
git clone ssh://git@192.168.1.123/~/Repos/servercode servercode
|
||||
|
@ -28,7 +30,7 @@ git add *
|
|||
git commit -a
|
||||
git commit * -m "Updating . . ."
|
||||
git remote -v
|
||||
git push origin master:refs/heads/upload
|
||||
# git push origin master:refs/heads/upload
|
||||
git push origin main:refs/heads/upload
|
||||
|
||||
|
||||
|
@ -53,6 +55,9 @@ git branch -a
|
|||
git pull --rebase git@github.com:IntenseWebs/servercode.git
|
||||
git push
|
||||
|
||||
git config --list
|
||||
git log
|
||||
|
||||
#GIT CLONE TO ONE FILE FOR BACKUP
|
||||
#! /bin/bash
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user