kihei/i-0eb2b2fb37bbcf158
by SadServersMore by SadServers
drwxr-xr-x 7 admin admin 4096 Jan 2 19:50 . drwxr-xr-x 3 root root 4096 Sep 17 16:44 .. drwx------ 3 admin admin 4096 Sep 17 17:15 .ansible -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 Jan 2 19:50 .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 17 17:28 agent drwxr-xr-x 2 admin root 4096 Sep 17 17:28 data -rw-r--r-- 1 root root 5368709120 Sep 17 17:28 datafile -rwxr-xr-x 1 admin root 2207109 Sep 17 17:28 kihei admin@i-0a4d866735d737133:~$ sudo vgcreate newdata /dev/sdb /dev/sdc Volume group "newdata" successfully created admin@i-0a4d866735d737133:~$ sudo lvcreate -l 100%FREE -n newfile newdata
kihei/i-0a4d866735d737133 01:58
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 SadServerswrite(2, "0x47d", 50x47d) = 5 write(2, "\n", 1 ) = 1 exit_group(2) = ? +++ exited with 2 +++ admin@i-05088a4f1fc43f619:~$ strace ./kihei 2>&1 | grep datafile newfstatat(AT_FDCWD, "/home/admin/data/newdatafile", 0xc00008e9f8, 0) = -1 ENOENunlinkat(AT_FDCWD, "/home/admin/data/newdatafile", 0) = 0 admin@i-05088a4f1fc43f619:~$ cd data admin@i-05088a4f1fc43f619:~/data$ ls -al total 8 drwxr-xr-x 2 admin root 4096 Dec 5 09:17 . drwxr-xr-x 7 admin admin 4096 Dec 5 09:12 .. admin@i-05088a4f1fc43f619:~/data$ touch newdatafile admin@i-05088a4f1fc43f619:~/data$ strace .../kihei 2>&1 | grep datafile