如何在LVM上调整DRBD磁盘的大小?


8

这是我的drbd配置

resource mysql {

    protocol C;

    floating 10.100.101.1:7788 {
            device   /dev/drbd0;
            disk     /dev/VolGroup00/LogVol02;
            meta-disk       internal;
    }

    floating 10.100.101.2:7788 {
            device   /dev/drbd0;
    disk     /dev/VolGroup01/LogVol02;
    meta-disk   internal;
    }
}

两个节点上LVM上的磁盘设置为50G,两个节点上LVM上的磁盘设置为+ 4G(现在总共为54G)

但是当我尝试跑步时

[root@db1 ~]# resize2fs /dev/VolGroup00/LogVol02
resize2fs 1.39 (29-May-2006)
resize2fs: Device or resource busy while trying to open /dev/VolGroup00/LogVol02
Couldn't find valid filesystem superblock.
[root@db1 ~]# 

它说我不能。我该怎么办?我应该停止DRBD吗?如果是这样,在调整大小并启动​​DRBD之后,我应该执行其他步骤吗?

谢谢,德米特里

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.