View previous topic :: View next topic |
Author |
Message |
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1306 Location: sweden
|
Posted: Sat Jan 28, 2012 10:29 am Post subject: resize /home (solved) |
|
|
hi i need some help to take the rest of my :
mybox hedmo # cat /proc/mdstat
Personalities : [raid0] [raid1]
md4 : active raid0 sdd4[1] sdc4[0]
102399872 blocks 64k chunks
mybox hedmo # fdisk -l /dev/sdd /dev/sdc
Disk /dev/sdd: 74.4 GB, 74354687488 bytes
60 heads, 21 sectors/track, 115257 cylinders, total 145223999 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x544f4f42
Device Boot Start End Blocks Id System
/dev/sdd4 2048 102402047 51200000 fd Linux raid autodetect
Disk /dev/sdc: 74.4 GB, 74355769344 bytes
60 heads, 21 sectors/track, 115258 cylinders, total 145226112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x12585942
Device Boot Start End Blocks Id System
/dev/sdc4 2048 102402047 51200000 fd Linux raid autodetect
and resize my /home :
mybox hedmo # lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
distfiles vg -wi-ao 10.00g
home vg -wi-ao 20.00g
opt vg -wi-ao 4.00g
portage vg -wi-ao 5.00g
tmp vg -wi-ao 2.00g
usr vg -wi-ao 40.00g
var vg -wi-ao 4.00g
vartmp vg -wi-ao 10.00g
thanks!!
hedmo
Last edited by hedmo on Mon Feb 20, 2012 12:26 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54409 Location: 56N 3W
|
Posted: Sat Jan 28, 2012 1:02 pm Post subject: |
|
|
hedmo,
What doesshow ?
In particular, near the bottom Code: | Free PE / Size 367844 / 1.40 TiB | shows I have 1.4 TiB in the volume group, not yet allocated to any logical volumes.
The following assumes you have some free space too.
You needread the man page to change the size of your logical volume for /home. This is akin to making the /home partition bigger.
Warning be sure you understand the difference between -L 10G and -L +10G
After that you need to resize the filesystem. The command for that is filesystem type dependent.
For extX its resize2fs - read the man page for the detail.
With extX it all happens on the live mounted filesystem.
Warning ... some filesystems do not support resizing, some only support growing, others support growing and shrinking.
If you don't have any unallocated space, you either need to grow your Physical Volume first, or shrink other filesystems to omake free space.
Shrinking is harder and again, its filesystem dependent. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1306 Location: sweden
|
Posted: Sat Jan 28, 2012 2:32 pm Post subject: |
|
|
NeddySeagoon
thanks! as always for the fast reply:
mybox hedmo # /sbin/vgdisplay
Free PE / Size 679 / 2.65 GiB
sorry!! i dont think a made my self clear.its the unpartiton space on the disks that i am after.dont i need to ,like fdisk and stuff like that
i will check some more info about it an post back
regards hedmo |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54409 Location: 56N 3W
|
Posted: Sat Jan 28, 2012 7:50 pm Post subject: |
|
|
hedmo,
Use the partition tool of your choice to make a new partition for the remaining space on each drive.
Raid it if you wish. Donate the new space to a new Physical Volume or grow the existing Physical volume to include it, then proceed as my previous post. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1306 Location: sweden
|
Posted: Sun Feb 12, 2012 5:59 pm Post subject: |
|
|
NeddySeagoon
after hours of reading and still did not get the hole picture how to expand my /home.
I decided to make a new one:
mybox ~ # df -h | grep /home
/dev/mapper/vg-home 20G 8.5G 11G 46% /home
/dev/mapper/vghedmo-hedmo 40G 8.8G 29G 24% /home/hedmo
mybox ~ # /sbin/vgdisplay
--- Volume group ---
VG Name vghedmo
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 40.84 GiB
PE Size 4.00 MiB
Total PE 10454
Alloc PE / Size 10240 / 40.00 GiB
Free PE / Size 214 / 856.00 MiB
VG UUID GaeimV-MY2F-t5Is-ReyB-Rok4-WwkU-lzhBPz
--- Volume group ---
VG Name vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 29
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 8
Open LV 8
Max PV 0
Cur PV 1
Act PV 1
VG Size 97.65 GiB
PE Size 4.00 MiB
Total PE 24999
Alloc PE / Size 24320 / 95.00 GiB
Free PE / Size 679 / 2.65 GiB
VG UUID s3jr97-f4VI-U85a-fT5a-pDNu-BsRk-YF4NFg
mybox ~ # cat /proc/mdstat
Personalities : [raid0] [raid1]
md127 : active raid0 sdd3[1] sdc3[0]
42820608 blocks super 1.2 512k chunks
md4 : active raid0 sdc4[0] sdd4[1]
102399872 blocks 64k chunks
md1 : active raid1 sdb1[0] sda1[1]
102336 blocks [2/2] [UU]
md3 : active raid0 sdb3[0] sda3[1]
70047744 blocks 64k chunks
md5 : active raid0 sde1[1] sdf1[0]
234439424 blocks 64k chunks
unused devices: <none>
mybox ~ #
-------------------------------------------------------
it worked quite good but there is some problems i can not get my fingers on.
1.i named the new raid "md6" but it has renamed it self to "md127" and always do.
2.my download has dropped from 8mb/sec to 8kb/sec and do not know what the problem is.if i start a "root" firefox from my users D.E i have the right download again. |
|
Back to top |
|
|
|