Attach block volume using ICSCI commands and create mount points in OCI

Attach created storage in new server using ISCSI commands:

Verify storage attachment using fdisk
fdisk –l

Create physical volume
pvcreate /dev/sdb
Create volume group
Vgcreate bvdemo /dev/sdb

Create logical volumes using lvm and verify it using lsblk
lvcreate -n demo1 -L 500G bvdemo
lvcreate -n demo2 -L 500G bvdemo
lsblk –f

Format the disk
mkfs.ext4 /dev/bvdemo/demo1
mkfs.ext4 /dev/bvdemo/demo2

Create directories under root

Mount the volumes
mount /dev/bvdemo/demo1 /demo1mount
mount /dev/bvdemo/demo2 /demo2mount

  • March 4, 2019 | 18 views
  • Comments