In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The experiment achieves its goal:
Realize the mount and online expansion of logical volumes
Introduction: colored fonts in the text are particularly important points for attention.
/ / Notes, easy for readers to understand
[root@localhost ~] # fdisk / dev/sdc / / A partition of sdc disk is shown in the attached sdc diagram
[root@localhost ~] # fdisk / dev/sdd / / A partition of sdd disk is shown in the attached sdd diagram
[root@localhost ~] # pvcreate/dev/sdc1 / dev/sdd1
[root@localhost ~] # pvscan / / check whether the partition operation is correct (same as below)
[root@localhost ~] # vgcreatetest_vg / dev/sdc1 / dev/sdd1
[root@localhost ~] # vgscan
[root@localhost] # lvcreate-L 16G-n test_vg_lv / dev/test_vg/
[root@localhost ~] # lvscan
[root@localhost~] # mkfs.ext3 / dev/test_vg/test_vg_lv / / format file type to use partition
[root@localhost ~] # mkdir/data/mbox / / create a mount point
[root@localhost ~] # mount/dev/test_vg/test_vg_lv / data/mbox/ Mount
[root@localhost] # df-h
File system capacity used available used% mount point
/ dev/sda2 48G 2.6G 43G 6% /
/ dev/sda3 48G 181m 45G 1% / data
/ dev/sda1 99M 12M 83M 13% / boot
Tmpfs 506m 0506m 0% / dev/shm
/ dev/sdb1 19G 173M 18G 1% / data/sdb1
/ dev/sdb2 19G 173M 18G 1% / data/sdb2
/ dev/sdb6 3.8G 4.0K 3.8G 1% / data/vfat
/ dev/sr0 3.5G 3.5G 0100% / media/RHEL_5.10 i386 DVD
/ dev/mapper/test_vg-test_vg_lv
16G 173m 14G 1% / data/mbox
[root@localhost ~] #
So far, the logical volume has been mounted successfully
The following extends the logical volume
[root@localhost ~] # fdisk / dev/sdc / / A partition of sdc disk is shown in the attached sdc diagram
[root@localhost~] # partprobe / dev/sdc5
[root@localhost ~] # pvcreate/dev/sdc5
[root@localhost ~] # pvscan
[root@localhost ~] # vgextendtest_vg / dev/sdc5
[root@localhost ~] # vgscan
[root@localhost ~] # vgdisplay
[root@localhost] # lvextend-L 30G/dev/test_vg/test_vg_lv
[root@localhost ~] # lvdisplay | grep "LV Size"
[root@localhost~] # resize2fs / dev/test_vg/test_vg_lv
[root@localhost] # df-h
File system capacity used available used% mount point
/ dev/sda2 48G 2.6G 43G 6% /
/ dev/sda3 48G 181m 45G 1% / data
/ dev/sda1 99M 12M 83M 13% / boot
Tmpfs 506m 0506m 0% / dev/shm
/ dev/sdb1 19G 173M 18G 1% / data/sdb1
/ dev/sdb2 19G 173M 18G 1% / data/sdb2
/ dev/sdb6 3.8G 4.0K 3.8G 1% / data/vfat
/ dev/sr0 3.5G 3.5G 0100% / media/RHEL_5.10 i386 DVD
/ dev/mapper/test_vg-test_vg_lv
30g 173m 28G 1% / data/mbox
Experimental summary: command colored fonts, the author has also thought hard, but also the whole command is particularly important, we must pay attention to!
Pure hand fight!
Attachment: http://down.51cto.com/data/2365579
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.