---
# System prepended metadata

title: Untitled

---

## Initially:

```
[pkalever@localhost ceph-csi]$ kubectl  -n rbd-8081 exec -it pod/pod-with-raw-block-volume -- lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0    7:0    0 1008M  0 loop 
rbd0   251:0    0    1G  0 disk 
vda    253:0    0 19.5G  0 disk 
`-vda1 253:1    0 19.5G  0 part /etc/hosts
vdb    253:16   0   50G  0 disk 

[pkalever@localhost ceph-csi]$ kubectl  -n rbd-8081 exec -it pod/pod-with-raw-block-volume --  blockdev --getsize64 /dev/xvda 
1056964608
```

## After resize:

```
[pkalever@localhost ceph-csi]$ kubectl  -n rbd-8081 exec -it pod/pod-with-raw-block-volume -- lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0    7:0    0 1008M  0 loop 
rbd0   251:0    0   10G  0 disk 
vda    253:0    0 19.5G  0 disk 
`-vda1 253:1    0 19.5G  0 part /etc/hosts
vdb    253:16   0   50G  0 disk 

[pkalever@localhost ceph-csi]$ kubectl  -n rbd-8081 exec -it pod/pod-with-raw-block-volume --  blockdev --getsize64 /dev/xvda 
1056964608

[root@pod-with-raw-block-volume /]# ls  /sys/block/
dm-0/  loop1/ loop3/ loop5/ loop7/ nbd1/  nbd11/ nbd13/ nbd15/ nbd3/  nbd5/  nbd7/  nbd9/  vda/ 
loop0/ loop2/ loop4/ loop6/ nbd0/  nbd10/ nbd12/ nbd14/ nbd2/  nbd4/  nbd6/  nbd8/  rbd0/  vdb/ 

[root@pod-with-raw-block-volume /]# cat  /sys/block/rbd0/size 
20971520

[root@pod-with-raw-block-volume /]# cat  /sys/block/dm-0/size
2064384

```
## After waiting an hour:
```
[root@pod-with-raw-block-volume /]# blockdev --getsize64 /dev/xvda
1056964608

[pkalever@localhost ceph-csi]$  kubectl -n rbd-8081 delete  pod/pod-with-raw-block-volume
pod "pod-with-raw-block-volume" deleted                                                  
[pkalever@localhost ceph-csi]$  kubectl -n rbd-8081 create -f ./examples/rbd/raw-block-pod.yaml 
pod/pod-with-raw-block-volume created

[pkalever@localhost ceph-csi]$ kubectl -n rbd-8081 exec -it pod/pod-with-raw-block-volume -- bash

[root@pod-with-raw-block-volume /]# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0    7:0    0   10G  0 loop 
rbd0   251:0    0   10G  0 disk 
vda    253:0    0 19.5G  0 disk 
`-vda1 253:1    0 19.5G  0 part /etc/hosts
vdb    253:16   0   50G  0 disk 

[root@pod-with-raw-block-volume /]# blockdev --getsize64 /dev/xvda
10720641024

[root@pod-with-raw-block-volume /]# cat  /sys/block/rbd0/size 
20971520
[root@pod-with-raw-block-volume /]# cat  /sys/block/dm-0/size
20938752
```