BORGULYA Gábor wrote:
> normál teljesítmény. Lehetséges egyetleg egy file-rendszert és annak írható 
> LVM2 snapshot-ját mirror-ben használni?
 Ezt hogyan is erted?
> Lehet-e mount-olt mirror-nak menet 
> közben cserélni az egyik elemét?
>   
Igen

dom0:~# mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/loop0 
/dev/loop1
mdadm: array /dev/md2 started.
dom0:~# cat /proc/mdstat | grep md2
md2 : active raid1 loop0[0] loop1[1]
dom0:~# mkfs.ext2 /dev/md2
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
2544 inodes, 10176 blocks
508 blocks (4.99%) reserved for the super user
First data block=1
Maximum filesystem blocks=10485760
2 block groups
8192 blocks per group, 8192 fragments per group
1272 inodes per group
Superblock backups stored on blocks:
        8193

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
dom0:~# mount /dev/md2 /mnt/mnt0 -t ext2
dom0:~# mount | grep md2
/dev/md2 on /mnt/mnt0 type ext2 (rw,nogrpid)
cp /root/.bash_history /mnt/mnt0/
dom0:~# mdadm --manage --fail /dev/md2 /dev/loop0
mdadm: set /dev/loop0 faulty in /dev/md2
dom0:~# mdadm --manage --remove /dev/md2 /dev/loop0
mdadm: hot removed /dev/loop0
dom0:~# mdadm --add /dev/md2 /dev/loop2
mdadm: added /dev/loop2
dom0:~# cat /proc/mdstat | grep md2
md2 : active raid1 loop2[0] loop1[1]
dom0:~# mount /dev/loop0 /mnt/mnt1
dom0:~# diff /mnt/mnt0/.bash_history /mnt/mnt1/.bash_history
dom0:~#

Tarthatod egy halom image fileben a menteseidet, azt konnyu managelni 
meg scriptelni.
_________________________________________________
linux lista      -      linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz