В Thu, 28 May 2015 18:42:18 +0200 jdd <jdd@dodin.org> пишет:
Le 28/05/2015 17:54, Andrei Borzenkov a écrit :
Is there existing data in this partition?
yes, but the same data (approx, it was the same yesterday)
In this case you likely won't be able to use YaST. But creating manually is easy. bor@opensuse:~/src/lvm2> sudo mdadm --create /dev/md0 --level 1 --raid-devices 1 /dev/loop0 mdadm: '1' is an unusual number of drives for an array, so it is probably a mistake. If you really mean it you will need to specify --force before setting the number of drives. bor@opensuse:~/src/lvm2> sudo mdadm --create /dev/md0 --level 1 --raid-devices 1 --force /dev/loop0 mdadm: Note: this array has metadata at the start and may not be suitable as a boot device. If you plan to store '/boot' on this device please ensure that your boot-loader understands md/v1.x metadata, or use --metadata=0.90 mdadm: largest drive (/dev/loop0) exceeds size (960K) by more than 1% Continue creating array? y mdadm: Defaulting to version 1.2 metadata mdadm: array /dev/md0 started. bor@opensuse:~/src/lvm2> sudo mkfs -t ext2 /dev/md0 mke2fs 1.42.12 (29-Aug-2014) Creating filesystem with 960 1k blocks and 120 inodes Allocating group tables: done Writing inode tables: done Writing superblocks and filesystem accounting information: done bor@opensuse:~/src/lvm2> sudo mount -t ext2 /dev/md0 /tmp/x Now copy data from old file system to new on /dev/md0; make sure data is copied. When you are satisfied, unmount old partition and add it to array. bor@opensuse:~/src/lvm2> sudo mdadm --grow /dev/md0 --add --raid-devices 2 /dev/loop1 mdadm: added /dev/loop1 raid_disks for /dev/md0 set to 2 unfreeze bor@opensuse:~/src/lvm2> sudo mdadm --detail --scan ARRAY /dev/md0 metadata=1.2 name=opensuse.site:0 UUID=686f4db4:e2c57d52:fbc1bd79:5ad5e1e3 Now just dump configuration mdadm --detail --scan >> /etc/mdadm.conf Adjust numbers as needed (if you have some arrays already use /dev/md1 etc). Change fstab to use /dev/md0 or new UUID or old LABEL - up to you.
but as it is the same, I can wipe one without problem (not the two of them)
thanks jdd
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org