adding disk using logical volume management
1. first , make sure, new hard disk is already detected in your linux box
as you can see there are 2 disk device installed. for more detail, we can use fdisk command
here we can see, /dev/sda has already partition, and active. but /dev/sdb not. so we have to configure it first.
2. open the webmin,
hardware -> Logical Volume Management
Add a physical volume
After finish this step, we need to join both this, so that the volume size increase. To do this, we need tool in GUI (since I’m not familiar in command line). This tool is located in System, Administratiion, Logical Volume Management, as you can see in the picture above.
Wait for a while until it open
If this picture shown up, choose edit propeties
All we have to do is, slide the lv bar, from current to the maximum size you want. After that, click OK, and wait for a while.
If finish, you will see that you disk size is increase now.
#dmesg | grep disk
Vendor: VMware Model: Virtual disk Rev: 1.0
sd 0:0:0:0: Attached scsi disk sda
Vendor: VMware Model: Virtual disk Rev: 1.0
sd 0:0:1:0: Attached scsi disk sdb
as you can see there are 2 disk device installed. for more detail, we can use fdisk command
#fdisk -ls
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
here we can see, /dev/sda has already partition, and active. but /dev/sdb not. so we have to configure it first.
2. open the webmin,
hardware -> Logical Volume Management
Add a physical volume
After finish this step, we need to join both this, so that the volume size increase. To do this, we need tool in GUI (since I’m not familiar in command line). This tool is located in System, Administratiion, Logical Volume Management, as you can see in the picture above.
Wait for a while until it open
If this picture shown up, choose edit propeties
All we have to do is, slide the lv bar, from current to the maximum size you want. After that, click OK, and wait for a while.
If finish, you will see that you disk size is increase now.
Komentar