About

  After a few years thinking of creating a blog about my personal notes collected throughout my professional life. Well, now it is the time. When you are trying to implement new system or networking services, the normal rule is … Continue reading

Remove Volumes

Remove Logical Volume # umount  /dev/vg00/lv00 # lvremove /dev/vg00/lv00 Do you really want to remove active logical volume lv00? [y/n]: y Logical volume “lv00″ successfully removed Remove Group Volume # vgremove vg00 Do you really want to remove volume group … Continue reading

Reducing a Logical Volume

check current size “lv00″ #  df -h Filesystem                           Size  Used Avail Use% Mounted on /dev/mapper/vg00-lvrooC5                                            19G  2,5G   16G  14% / /dev/sda1                             244M   28M  203M  12% /boot tmpfs                                   3,8G     0  3,8G   0% /dev/shm /dev/mapper/vg00-lv00                                 … Continue reading

Setup iSCSI Target & Initiator (SAN ) on Centos 5.x

• Target Install packages #  yum -y groupinstall clustering cluster-storage #  yum -y install scsi-target-utils #  chkconfig tgtd on Configure the target # nano  /etc/tgt/target.conf <target iqn.2010-12.localdomain.luci:diskDC> backing-store /dev/mapper/vgstorage-lvdc initiator-address 192.168.0.33 initiator-address 10.15.183.7 initiator-address 10.15.183.8 </target> Display target available # tgtadm … Continue reading

Extending a Logical Volume

Situation a: Have enough free space on group volume vg00 check current size Logical Volume “lv00″  # df -h Filesystem                          Size  Used Avail Use% Mounted on /dev/mapper/vg00-lvrooC5                                            19G  2,5G   16G  14% / … Continue reading

Create Logical Volume

Create the Physical Volume # pvcreate /dev/sda2   Writing physical volume data to disk “/dev/sda2″   Physical volume “/dev/sda2″ successfully created Create a Volume Group # vgcreate vg00 /dev/sda2   Volume group “vg00″ successfully created Create a Logical Volume # lvcreate … Continue reading