# Mounting disk at home/kafka\_data which has 20Gb already and data as well

**URL:** https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991
**Category:** Kibana
**Created:** [October 13, 2023, 10:58am UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991 "2023-10-13T10:58:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kriti\_dabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kriti_dabas/32/118506_2.png) [@kriti\_dabas](https://discuss.elastic.co/u/kriti_dabas)
#### Post date: [October 13, 2023, 10:58am UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/1 "2023-10-13T10:58:00Z")

</div>

```auto
typ** command lsblk for checking the space added 
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1G 0 part /extra-storage
└─sda2 8:2 0 39G 0 part
  ├─cl_stag--elk--testing1-root 253:0 0 35.1G 0 lvm /
  └─cl_stag--elk--testing1-swap 253:1 0 4G 0 lvm [SWAP]
sdb 8:16 0 20G 0 disk 20GB added 
sr0 11:0 1 1024M 0 rom
[root@stag-elk-testing1 extra-storage]# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xcc8319d1.

Command (m for help): n
Partition type
   p primary (0 primary, 0 extended, 4 free)
   e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-41943039, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-41943039, default 41943039): try enter and then if signature option comes apply for remove 

Created a new partition 1 of type 'Linux' and of size 20 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

[root@stag-elk-testing1 extra-storage]# fdisk -l clear picture of the partitions and space alloted to it
Disk /dev/sda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disklabel type: dos
Disk identifier: 0xa263bb60

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 83886079 81786880 39G 8e Linux LVM

Disk /dev/mapper/cl_stag--elk--testing1-root: 35.1 GiB, 37652267008 bytes, 73539584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes

Disk /dev/mapper/cl_stag--elk--testing1-swap: 4 GiB, 4219469824 bytes, 8241152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes

Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
Disklabel type: dos
Disk identifier: 0xcc8319d1

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 41943039 41940992 20G 83 Linux
[root@stag-elk-testing1 extra-storage]# mkfs.ext4 /dev/s Formatting 
sda sda2 sdb1 sg1 shm/ snd/ stderr stdout
sda1 sdb sg0 sg2 snapshot sr0 stdin
[root@stag-elk-testing1 extra-storage]# mkfs.ext4 /dev/sdb
sdb sdb1
[root@stag-elk-testing1 extra-storage]# mkfs.ext4 /dev/sdb1 Formatting
mke2fs 1.45.6 (20-Mar-2020)
Discarding device blocks: done
Creating filesystem with 5242624 4k blocks and 1310720 inodes
Filesystem UUID: 940eadc0-dbc0-4519-8bc2-c5d4d23c4823
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

```

I created a partition using the above sdb1 in which there is 30GB something.  
I wanted to mount it at /home/kafka\_data where there is 20GB already and data also.  
The thing is when i mounted that space at /home/kafka\_data all the data got replaced and is hidden and my kafka stopped working.  
In the output of df-h now there is two home one is the older one with the 20 GB and the other one is /home/kafka\_data 30 GB space.  
But the older data ishidden /home/kafka\_data is empty

---

<div class="post-metadata">

### Author: ![kriti\_dabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kriti_dabas/32/118506_2.png) [@kriti\_dabas](https://discuss.elastic.co/u/kriti_dabas)
#### Post date: [October 13, 2023, 10:58am UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/2 "2023-10-13T10:58:56Z")

</div>

I want extra 30GB in the existing 20GB of /home/kafka\_data because my log are large in size.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 13, 2023, 12:06pm UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/3 "2023-10-13T12:06:19Z")

</div>

Hello,

Your question is unrelated to Elasticsearch, it is an operating system question.

You will have better chances for an answer on a dedicated forum for it like StackOverflow.

---

<div class="post-metadata">

### Author: ![kriti\_dabas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kriti_dabas/32/118506_2.png) [@kriti\_dabas](https://discuss.elastic.co/u/kriti_dabas)
#### Post date: [October 13, 2023, 12:19pm UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/4 "2023-10-13T12:19:19Z")

</div>

ok thanks for your suggestion although it is regarding kafka as well in case somebody could help? as i want to know what affect is there when /home/kafka\_data is deleted completely does it causes kafka to stop ?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 13, 2023, 12:52pm UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/5 "2023-10-13T12:52:44Z")

</div>

Kafka is also unrelated to Elastic.

This forum is for questions about issues with tools from the Elastic Stack like, Logstash, Elasticsearch and Kibana.

Kafka is not part of the Elastic stack, it is a third-party tool.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 13, 2023, 5:33pm UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/6 "2023-10-13T17:33:57Z")

</div>

Hi @kriti_dabas We appreciate your technical expertise however please keep your topics related to the Elastic Stack .  
Thank You.  
Closed Off-Topic

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 13, 2023, 5:34pm UTC](https://discuss.elastic.co/t/mounting-disk-at-home-kafka-data-which-has-20gb-already-and-data-as-well/344991/7 "2023-10-13T17:34:00Z")

</div>


