paris/i-02207ed701680d44d
by SadServersMore by SadServers
admin@i-06fbb5fbb32cbcef9:~$ vgs WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-06fbb5fbb32cbcef9:~$ sudo vgs admin@i-06fbb5fbb32cbcef9:~$ sudo vgs admin@i-06fbb5fbb32cbcef9:~$ sudo pvs PV VG Fmt Attr PSize PFree /dev/sdb lvm2 --- 1.00g 1.00g /dev/sdc lvm2 --- 1.00g 1.00g admin@i-06fbb5fbb32cbcef9:~$ vgcreate LVMvgTEST /dev/sdb /dev/sdc WARNING: Running as a non-root user. Functionality may be unavailable. /run/lock/lvm/P_global:aux: open failed: Permission denied admin@i-06fbb5fbb32cbcef9:~$ sudo vgcreate LVMvgTEST /dev/sdb /dev/sdc Volume group "LVMvgTEST" successfully created admin@i-06fbb5fbb32cbcef9:~$ lvs
kihei/i-06fbb5fbb32cbcef9 03:14
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 SadServersnvme1n1 259:4 0 1G 0 disk nvme2n1 259:5 0 1G 0 disk root@i-038652727ef9bbf76:~# vgdisplay root@i-038652727ef9bbf76:~# sudo mkdir /nvme1n1/mydisk mkdir: cannot create directory ‘/nvme1n1/mydisk’: No such file or directory root@i-038652727ef9bbf76:~# sudo mount /dev/nvme0n1p1 /dev/nv nvme0 nvme0n1p1 nvme0n1p15 nvme1n1 nvme2n1 nvme0n1 nvme0n1p14 nvme1 nvme2 nvram root@i-038652727ef9bbf76:~# sudo mount /dev/nvme0n1p1 /dev/nvme1 nvme1 nvme1n1 root@i-038652727ef9bbf76:~# sudo mount /dev/nvme0n1p1 /dev/nvme1 nvme1 nvme1n1 root@i-038652727ef9bbf76:~# sudo mount /dev/nvme0n1p1 /dev/nvme1n1 mount: /dev/nvme1n1: mount point is not a directory. root@i-038652727ef9bbf76:~# sudo mkdir /dev/