Friday, July 18, 2014

How to use LVM - Expand, Reduce, and Snapshot [ debian , ubuntu ] I tried it on ubuntu server 12.04

  This video is not mine but very professional and profound step by step .Please don't forget use 
 NANO /ETC/FSTAB but to auto mount local volume on start you have to use MAPPER but not UUID 
or you will have problem on boot.Copy of my 12.04 ubuntu server  FSTAB is below the video
                                     

pvcreate /dev/sdb1
pvdisplay
pvscan

vgcreate 4tb /dev/sdb1      [ I use only one 4tb hard drive ]
vgdisplay
vgscan

lvcreate -L 1000G  4tb  -n VIPI

lvcreate -L 1000G 4tb  -n TEMU
lvdisplay
lvdisplay
lvscan

1 BONUS   sudo  vgchange  -ay

2 BONUS   sudo  update-initramfs -u

3 BONUS   sudo lsblk

my 2 mount points is    /arj4tb/VIPI  and  /arj2/TEMU

                                             
sudo nano /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>       <type>   <options>             <dump>  <pass>
     proc            /proc           proc     nodev,noexec,nosuid     0       0


/dev/mapper/molot-root /                               ext4    errors=remount-ro      0       1

/dev/mapper/4tb-VIPI /arj4tb/VIPI                ext4    errors=remount-ro      0       1
/dev/mapper/4tb-TXMU /arj24tb/TEMU      ext4    errors=remount-ro      0       1

# /boot was on /dev/sda1 during installation
UUID=9bd8f2d3-f260-41fe-b7a4-d71818a4d82f /boot   ext2    defaults    0       2

 /dev/mapper/molot-swap_1 none              swap    sw                 0       0

No comments:

Post a Comment

wordpress problem with plugin updates

                                                           changing permissions will solve the problem                                    ...