BK क्लाउड / सिस्टम लेख
HI
English ENDeutsch DEEspañol ES中文 ZHFrançais FRPortuguês (Brasil) PT-BR日本語 JAहिन्दी HI
आइए बात करें ↗
← अनुभवों वाले लेखों पर वापस जाएँ

Ubuntu 18.04 (AWS) ext4 फ़ाइल सिस्टम

मौजूदा EC2 instance में नया EBS volume जोड़कर उसे Linux operating system के इस्तेमाल के लिए उपलब्ध कराने का तरीका।

AWS में volume को EC2 instance से जोड़ने के बाद, उसे फ़ाइल सिस्टम में शामिल करने के लिए ये कदम अपनाएं।

lsblk

Device identifier ढूंढने के लिए यह command चलाएं, जैसे /dev/xvdf.

mkfs.ext4 /dev/xvdf
mkdir /mnt2
mount /dev/xvdf /mnt2

इसे अपडेट करना न भूलें /etc/fstab ताकि बदलाव रीस्टार्ट के बाद भी बना रहे।

LABEL=cloudimg-rootfs    /    ext4   defaults,discard    0 0
/dev/xvdb /mnt ext4 defaults 0 0
/dev/xvdf /mnt2 ext4 defaults 0 0

Volume का आकार बढ़ाना हो तो AWS Management Console में बढ़ाएं और प्रक्रिया पूरी होने दें। फिर अतिरिक्त जगह उपलब्ध कराने के लिए यह command चलाएं:

resize2fs /dev/xvdf