2014년 7월 27일 일요일

ubuntu resize hdd in vmware with cfdisk

- Resize vmware hdd size.

- Create new partition using cfdisk: with fdisk error occur "no free sector available"
$ sudo cfdisk /dev/sda

new -> logical -> Size( in MB) : 89121.62
Type -> 8E
Write -> yes
Quit

- Reboot server:
$ sudo reboot
- Assuming you created partition /dev/sda6, let's now create the physical volume in that partition:
$ sudo pvcreate /dev/sda6

- Now let's extend the server's Volume Group to that physical volume.
$sudo vgdisplay
This will give you the info on your current Volume Group. Note down the entry next to "VG Name". That's your Volume Group name.

$ sudo vgextend EnterVolumeGroupNameHere /dev/sda6
 - Since we're (essentially) extending the main logical volume, let's get the name of that:
$ lvdisplay
and note down the entry next to "LV Name". This is your logical volume's name (e.g. /dev/srv/root), which you'll now extend to the newly added partition/physical volume.

- Extend the logical volume by X GBs:
$ lvextend -L +XG yourLogicalVolumePath
 Make sure you replace X above with the actual number of GBs you've added in your VM's settings. So if you increased your VM by 20GBs, the command becomes:
$ lvextend -L +20G yourLogicalVolumePath

- Finally, let's resize the file system to the new allocated space:
$ resize2fs yourLogicalVolumePath
(this may take some time depending on number of GBs added to the file system.

- Check the new file system sizes:
$ df -hT

댓글 없음:

댓글 쓰기

3gb minning

비트코인 골드 -- 마이너 다운로드 :  https://www.bminercontent.com/releases/bminer-v6.0.0-d111154-amd64.zip -- vcruntime140.dll 다운로드  https://www.micr...