SadServers Joined on September 10, 2023
1667 public recordings by SadServers
lvm lvmconfig lvmdiskscan lvmdump lvmpolld lvmsadc lvadmin@i-07643435c20bd9e33:~$ lvm lvm lvmconfig lvmdiskscan lvmdump lvmpolld lvmsadc lvadmin@i-07643435c20bd9e33:~$ which lvm /usr/sbin/lvm admin@i-07643435c20bd9e33:~$ whatis lvm lvm (8) - LVM2 tools admin@i-07643435c20bd9e33:~$ pvcreate /dev/nvme1n1 WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-07643435c20bd9e33:~$ sudo pvcreate /dev/nvme1n1 Physical volume "/dev/nvme1n1" successfully created. admin@i-07643435c20bd9e33:~$ sudo pvcreate /dev/nvme2n1 Physical volume "/dev/nvme2n1" successfully created. admin@i-07643435c20bd9e33:~$ sudo vgcreate kiheidata
kihei/i-07643435c20bd9e33 04:44
by SadServerswrite(2, "64", 264) = 2 write(2, " +", 2 +) = 2 write(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-00193c99c2625c6e2:~$ ./kihei -v Creating file /home/admin/data/newdatafile with size 1.5GB... panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-00193c99c2625c6e2:~$
kihei/i-00193c99c2625c6e2 03:04
by SadServers-rw-r----- 1 root adm 17016 Dec 30 11:16 debug -rw-r--r-- 1 root root 15246 Sep 17 17:28 dpkg.log -rw-r--r-- 1 root root 32032 Sep 17 16:44 faillog drwxr-sr-x+ 3 root systemd-journal 4096 Sep 17 16:44 journal -rw-r----- 1 root adm 177288 Dec 30 11:16 kern.log -rw-rw-r-- 1 root utmp 292292 Sep 17 17:28 lastlog -rw-r----- 1 root adm 181036 Dec 30 11:16 messages -rw-r--r-- 1 root root 3952 Dec 30 11:34 minio.log drwx------ 2 root root 4096 Sep 17 16:44 private drwxr-xr-x 3 root root 4096 Sep 28 2021 runit -rw-r----- 1 root adm 324625 Dec 30 11:34 syslog drwxr-x--- 2 root adm 4096 Sep 17 16:44 unattended-upgrades -rw-r----- 1 root adm 19756 Dec 30 11:16 user.log -rw-rw-r-- 1 root utmp 46464 Dec 30 11:16 wtmp admin@i-079bce1478cc18499:/var/log$ jounr
kihei/i-079bce1478cc18499 03:58
by SadServersnvme2n1 259:2 0 1G 0 disk admin@i-02780e50ec753e2bd:~$ sudo pvcreate /dev/nvme1n1 /dev/nvme2n1 Physical volume "/dev/nvme1n1" successfully created. Physical volume "/dev/nvme2n1" successfully created. admin@i-02780e50ec753e2bd:~$ sudo vgcreate dd /dev/nvme1n1 /dev/nvme2n1 Volume group "dd" successfully created admin@i-02780e50ec753e2bd:~$ sudo lvcreate -l 100%FREE -n app dd Logical volume "app" created. admin@i-02780e50ec753e2bd:~$ lvs WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-02780e50ec753e2bd:~$ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert app dd -wi-a----- 1.99g admin@i-02780e50ec753e2bd:~$ mksfs
kihei/i-02780e50ec753e2bd 03:46
by SadServersadmin@i-0d3a11c0c70c20cf9:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 8G 0 disk ├─nvme0n1p1 259:2 0 7.9G 0 part / ├─nvme0n1p14 259:3 0 3M 0 part └─nvme0n1p15 259:4 0 124M 0 part /boot/efi nvme2n1 259:1 0 1G 0 disk nvme1n1 259:5 0 1G 0 disk admin@i-0d3a11c0c70c20cf9:~$ vgcreate dd /dev/nvme1n1 /dev/nvme2n1 WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-0d3a11c0c70c20cf9:~$ sudo vgcreate dd /dev/nvme1n1 /dev/nvme2n1 Volume group "dd" successfully created admin@i-0d3a11c0c70c20cf9:~$ sudo lvcreate ap
kihei/i-0d3a11c0c70c20cf9 05:22
by SadServers└─nvme0n1p15 259:5 0 124M 0 part /boot/efi nvme2n1 259:2 0 1G 0 disk admin@i-0ee381b106ee6f241:~$ sudo lvdisplay admin@i-0ee381b106ee6f241:~$ df -hT Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 217M 0 217M 0% /dev tmpfs tmpfs 46M 368K 46M 1% /run /dev/nvme0n1p1 ext4 7.7G 6.1G 1.2G 84% / tmpfs tmpfs 228M 12K 228M 1% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/nvme0n1p15 vfat 124M 5.9M 118M 5% /boot/efi admin@i-0ee381b106ee6f241:~$ sudo mkfs.ext4 /dev/nvme1n1 mke2fs 1.46.2 (28-Feb-2021) /dev/nvme1n1 contains a LVM2_member file system Proceed anyway? (y,N)
kihei/i-0ee381b106ee6f241 07:52
by SadServers-rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4.0K Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4.0K Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-044a7fbb0934efb34:~$ cd .config/ admin@i-044a7fbb0934efb34:~/.config$ ls asciinema admin@i-044a7fbb0934efb34:~/.config$ cd asciinema/ admin@i-044a7fbb0934efb34:~/.config/asciinema$ ls install-id admin@i-044a7fbb0934efb34:~/.config/asciinema$ cd ^C admin@i-044a7fbb0934efb34:~/.config/asciinema$ cat install-id 0e2d35c4-a944-417f-bd3a-677c2f875b37admin@i-044a7fbb0934efb34:~/.config/asciinemadmin@i-044a7fbb0934efb34:~/.config$ cd .. admin@i-044a7fbb0934efb34:~$
paris/i-044a7fbb0934efb34 03:18
by SadServersadmin@i-06a632625d40e1c3d:~$ lvdisplay WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-06a632625d40e1c3d:~$ sudo lvdisplay admin@i-06a632625d40e1c3d:~$ umount data umount: /home/admin/data: must be superuser to unmount. admin@i-06a632625d40e1c3d:~$ sudo umount data admin@i-06a632625d40e1c3d:~$ shred -v^C admin@i-06a632625d40e1c3d:~$ pvdisplay WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-06a632625d40e1c3d:~$ sudo pvdispaly sudo: pvdispaly: command not found admin@i-06a632625d40e1c3d:~$ sudo pvdisplay admin@i-06a632625d40e1c3d:~$
kihei/i-06a632625d40e1c3d 05:03
by SadServersadmin@i-04efb7ea061bff728:~$ ./kihei panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-04efb7ea061bff728:~$ cat data cat: data: Is a directory admin@i-04efb7ea061bff728:~$ ls -la data total 8 drwxr-xr-x 2 admin root 4096 Dec 29 20:50 . drwxr-xr-x 7 admin admin 4096 Dec 29 20:47 .. admin@i-04efb7ea061bff728:~$ mv datafile data/newdata
kihei/i-04efb7ea061bff728 03:04
by SadServersdrwxr-xr-x 6 admin admin 4096 Sep 24 23:20 . drwxr-xr-x 3 root root 4096 Sep 17 16:44 .. drwx------ 3 admin admin 4096 Sep 20 15:52 .ansible -rw------- 1 admin admin 485 Dec 29 21:06 .bash_history -rw-r--r-- 1 admin admin 220 Aug 4 2021 .bash_logout -rw-r--r-- 1 admin admin 3526 Aug 4 2021 .bashrc drwxr-xr-x 3 admin admin 4096 Sep 20 15:56 .config -rw-r--r-- 1 admin admin 807 Aug 4 2021 .profile drwx------ 2 admin admin 4096 Sep 17 16:44 .ssh drwxr-xr-x 2 admin root 4096 Sep 24 23:20 agent -rwxrwx--- 1 root root 360 Sep 24 23:20 webserver.py admin@i-06d586ef8810553b9:~$ cat webserver.py cat: webserver.py: Permission denied (failed reverse-i-search)`curl': ^Ct webserver.py admin@i-06d586ef8810553b9:~$ curl localhost:
paris/i-06d586ef8810553b9 02:52
by SadServersAllocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done root@i-06073fc493f2f2874:/home/admin# df -h Filesystem Size Used Avail Use% Mounted on udev 217M 0 217M 0% /dev tmpfs 46M 372K 46M 1% /run /dev/nvme0n1p1 7.7G 6.1G 1.2G 84% / tmpfs 228M 12K 228M 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/nvme0n1p15 124M 5.9M 118M 5% /boot/efi root@i-06073fc493f2f2874:/home/admin#
kihei/i-06073fc493f2f2874 01:29
by SadServersadmin@i-08bead324c6bc394c:~$ admin@i-08bead324c6bc394c:~$ admin@i-08bead324c6bc394c:~$ netstat -tnlp (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp6 0 0 :::6767 :::* LISTEN tcp6 0 0 :::8080 :::* LISTEN tcp6 0 0 :::22 :::* LISTEN admin@i-08bead324c6bc394c:~$ admin@i-08bead324c6bc394c:~$ admin@i-08bead324c6bc394c:~$
paris/i-08bead324c6bc394c 01:57
by SadServerswrite(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-031aabe4fa77b4190:~$ q^C admin@i-031aabe4fa77b4190:~$ ./kihei -v Creating file /home/admin/data/newdatafile with size 1.5GB... panic: exit status 1 goroutine 1 [running]: main.main() ./main.go:64 +0x47d admin@i-031aabe4fa77b4190:~$ ./kihei -df -^C admin@i-031aabe4fa77b4190:~$ df -