Re: [linux-lvm] Is MD array (containing a PV) reducible?

Phillip Susi <[email protected]>
Newsgroups dev.linux.lists.linux-lvm
Message-ID <[email protected]>
"Brian J. Murrell" <[email protected]> writes:

> So just to confirm, given:
>
> sdc                                             8:32   0   3.7T  0 disk  
> └─md0                                           9:0    0   3.7T  0 raid1 
>   ├─backups-backups                           253:13   0   2.5T  0 lvm   /.snapshots
>   ├─backups-borg                              253:14   0   300G  0 lvm   
>   └─backups-vdo--test                         253:15   0   700G  0 lvm   
>     └─vdo-backups                             253:73   0   1.8T  0 vdo   
> sdd                                             8:48   0   3.7T  0 disk  
> └─md1                                           9:1    0   3.7T  0 raid1 
>   └─luks-backup                               253:40   0   3.7T  0 crypt 
>
> I want to do:
>
> # pvcreate /dev/mapper/luks-backup
> # vgextend backups /dev/mapper/luks-backup
> # pvmove /dev/md0 /dev/luks-backup
> # vgreduce backups /dev/md0
> # mdadm --stop /dev/md0
> # mdadm --zero-superblocks /dev/sdc
> # mdadm /dev/md1 --add /dev/sdc
>
> Correct?

Yep.

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.