Welcome to blog.perlubantuan.com

The Journal Of A Linux Sysadmin

MDADM Cheat Sheet (2)

create a new array mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 or… mdadm -C /dev/md0 -l1 -n2 /dev/sd[ab]1 add array to the configuration file: mdadm --detail --scan >> /etc/mdadm.conf or on debian (sigh)… mdadm --detail --scan >> /etc/mdadm/mdadm.conf can only remove failed disks from an array, so fail a disk:…

How to enable write cache for 3ware Raid controller

You can check the current cache status and then enable or disable it using the 3ware command line utility tw_cli. First lets see how we can check the current status :[email protected] [~]# tw_cli info c0 Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy ------------------------------------------------------------------------------ u0    RAID-10   OK             -       -       64K     465.641   ON    …

Converting between image formats

qemu-img convert: raw, qcow2, qed, vdi, vmdk, vhd The qemu-img convert command can do conversion between multiple formats, including qcow2, qed, raw, vdi, vhd, and vmdk. Image formatArgument to qemu-imgQCOW2 (KVM, Xen)qcow2QED (KVM)qedrawrawVDI (VirtualBox)vdiVHD (Hyper-V)vpcVMDK (VMware)vmdk This example will convert a raw image file named image.img to a qcow2 image file. $ qemu-img convert -f raw -O qcow2 image.img image.qcow2…
1 2 3 25