Hi erman,
We need your expertise. In OCI DBCS Hi Erman, Our team created compute instance with block voume size 200GB. Now Attaching blcok volume to instance. Please let us know if below approach looks good or any corrections. --->In Putty, We have executed the commands copied from OCI console. [root@srv-uat-001 ~]# sudo iscsiadm -m node -o new -T iqn.2015-12.com.oracleiaas:33e6027a-266f-40ff-b8fe-2f281e0c6d2f -p 169.254.2.2:3260 New iSCSI node [tcp:[hw=,ip=,net_if=,iscsi_if=default] 169.254.2.2,3260,-1 iqn.2015-12.com.oracleiaas:33e6027a-266f-40ff-b8fe-2f281e0c6d2f] added [root@srv-uat-001 ~]# sudo iscsiadm -m node -o update -T iqn.2015-12.com.oracleiaas:33e6027a-266f-40ff-b8fe-2f281e0c6d2f -n node.startup -v automatic [root@srv-uat-001 ~]# sudo iscsiadm -m node -T iqn.2015-12.com.oracleiaas:33e6027a-266f-40ff-b8fe-2f281e0c6d2f -p 169.254.2.2:3260 -l Logging in to [iface: default, target: iqn.2015-12.com.oracleiaas:33e6027a-266f-40ff-b8fe-2f281e0c6d2f, portal: 169.254.2.2,3260] Login to [iface: default, target: iqn.2015-12.com.oracleiaas:33e6027a-266f-40ff-b8fe-2f281e0c6d2f, portal: 169.254.2.2,3260] successful. --->lsblk output [opc@srv-uat-001 ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk ├─sda1 8:1 0 100M 0 part /boot/efi ├─sda2 8:2 0 1G 0 part /boot └─sda3 8:3 0 45.5G 0 part ├─ocivolume-root 252:0 0 35.5G 0 lvm / └─ocivolume-oled 252:1 0 10G 0 lvm /var/oled sdb 8:16 0 200G 0 disk------------------------------>Which we added --->[opc@srv-uat-001 oracleoci]$ sudo mkfs -t ext4 /dev/oracleoci/oraclevdb mke2fs 1.46.2 (28-Feb-2021) Discarding device blocks: done Creating filesystem with 52428800 4k blocks and 13107200 inodes Filesystem UUID: d9a10c84-268b-4c97-9cc2-0d9dd253f4db Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872 Allocating group tables: done Writing inode tables: done Creating journal (262144 blocks): done Writing superblocks and filesystem accounting information: done --->Added below entry in /etc/fstab /dev/oracleoci/oraclevdb /u01 ext4 defaults,noatime,_netdev 0 2 --->[opc@srv-uat-001 oracleoci]$ sudo mount -a mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload. --->[opc@srv-uat-001 oracleoci]$ sudo systemctl daemon-reload [opc@srv-uat-001 oracleoci]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk ├─sda1 8:1 0 100M 0 part /boot/efi ├─sda2 8:2 0 1G 0 part /boot └─sda3 8:3 0 45.5G 0 part ├─ocivolume-root 252:0 0 35.5G 0 lvm / └─ocivolume-oled 252:1 0 10G 0 lvm /var/oled sdb 8:16 0 200G 0 disk /u01 1) How can we find the uuid for the device which we have added. Just to place it in /etc/fstab 2) Is partitioning mandatory. I think in above case,team didnt do that. Please correct me. Thanks, SGU |
Administrator
|
Please follow -> https://docs.oracle.com/en-us/iaas/Content/Block/Tasks/attachingavolume.htm
1-lsblk -o name,uuid 2- I cannot locate an explicit statement from Oracle that directly mandates partitioning a block volume for DBCS instances, but it is recommended. |
Free forum by Nabble | Edit this page |