kihei/i-0847c56ed353b4fb9
by SadServersMore by SadServers
Volume group "vol_1" has insufficient free space (510 extents): 512 required. admin@i-0b91400005923e34a:~$ sudo lvcreate -L 1.6G vol_1 Rounding up size to full physical extent 1.60 GiB Logical volume "lvol0" created. admin@i-0b91400005923e34a:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 8G 0 disk ├─nvme0n1p1 259:3 0 7.9G 0 part / ├─nvme0n1p14 259:4 0 3M 0 part └─nvme0n1p15 259:5 0 124M 0 part /boot/efi nvme1n1 259:1 0 1G 0 disk └─vol_1-lvol0 254:0 0 1.6G 0 lvm nvme2n1 259:2 0 1G 0 disk └─vol_1-lvol0 254:0 0 1.6G 0 lvm admin@i-0b91400005923e34a:~$ /home/admin/kihei
kihei/i-0b91400005923e34a 09:11
by SadServersudev 217M 0 217M 0% /dev tmpfs 46M 368K 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 admin@i-051941ba15b672aa1:~$ du -shx 5.1G . admin@i-051941ba15b672aa1:~$ ls -l total 5245048 drwxr-xr-x 2 admin root 4096 Sep 17 2023 agent drwxr-xr-x 2 admin root 4096 Oct 22 10:34 data -rw-r--r-- 1 root root 5368709120 Sep 17 2023 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 2023 kihei admin@i-051941ba15b672aa1:~$
kihei/i-051941ba15b672aa1 00:53
by SadServersadmin@i-0dbd5dce9178f03c1:~$ ls data lost+found admin@i-0dbd5dce9178f03c1:~$ touch data/newdatafile touch: cannot touch 'data/newdatafile': Permission denied admin@i-0dbd5dce9178f03c1:~$ sudo touch data/newdatafile admin@i-0dbd5dce9178f03c1:~$ sudo chown admin:admin data/newdatafile admin@i-0dbd5dce9178f03c1:~$ ./kihei panic: remove /home/admin/data/newdatafile: permission denied goroutine 1 [running]: main.main() ./main.go:50 +0x48d admin@i-0dbd5dce9178f03c1:~$ ls -alh /home/admin/data/newdatafile -rw-r--r-- 1 admin admin 0 Mar 8 16:31 /home/admin/data/newdatafile admin@i-0dbd5dce9178f03c1:~$