Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Shared VG changes active status under Linux

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Reprint address: blog.csdn.net/lenovouser/article/details/17378101

Share VG under Linux Change Active Status

lvm and EMC operations

For the WEB server, from the storage is divided into a block of lun to the WEB server two servers composed of the zone, so

When I create a vg using this lun on WEB server1, I can see the vg that has been created on WEB server2.

pv information, at the same time, use the following command to switch vg between the two servers.

WEB server1:

lvdisplay shows that there is 1 active lv, first enumerate the file system

umount /testfs

Then deactivate VG

vgchange -an testvg //Stop LVM

Then on WEB Server2:

lvdisplay shows no active lv

Activate vg first

vgchange -ay testvg

Check the LV status again and find that there is already an active LV

lvdisplay

Mount up this LV

mount /dev/testvg/testlv /testfs

cd /testfs

Found files created on WEB server1, also accessible here

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report