Hi all,
I am using SLES 9 and have following partitions mounted
I would like to make /var 10G atleast.
fdisk -l
Disk /dev/sda: 218.2 GB, 218238025728 bytes
255 heads, 63 sectors/track, 26532 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 8 64228+ de Dell Utility
/dev/sda2 9 792 6297480 8e Linux LVM
/dev/sda3 * 793 818 208845 83 Linux
/dev/sda4 819 26530 206531640 5 Extended
/dev/sda5 819 949 1052226 82 Linux swap
/dev/sda6 950 26530 205479351 8e Linux LVM
/dev/system/root_lv / reiserfs acl,user_xattr 1 1
LABEL=boot /boot reiserfs acl,user_xattr 1 2
/dev/system/home_lv /home reiserfs defaults 1 2
/dev/system/opt_lv /opt reiserfs acl,user_xattr 1 2
/dev/system/srv_lv /srv reiserfs acl,user_xattr 1 2
/dev/system/tmp_lv /tmp reiserfs acl,user_xattr 1 2
/dev/system/usr_lv /usr reiserfs acl,user_xattr 1 2
/dev/system/var_lv /var reiserfs acl,user_xattr 1 2
/dev/sda5 swap swap acl,user_xattr
This system is doing RAID5(HW).
Can someone help me with this issue?
Thanks
upengan78,
It seems that your using LVM. Can you provide the information of the following command so that we can help you.
1.#pvdisplay
2.#vgdisplay
3. #lvdisplay
1.#pvdisplay
pvdisplay
--- Physical volume ---
PV Name /dev/sda6
VG Name system
PV Size 195.96 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 50165
Free PE 35829
Allocated PE 14336
PV UUID 7seGq8-rVpp-q0dq-JDMv-uyOu-hy68-wtpb6g
--- Physical volume ---
PV Name /dev/sda2
VG Name system
PV Size 6.00 GB / not usable 0
Allocatable yes
PE Size (KByte) 4096
Total PE 1537
Free PE 1537
Allocated PE 0
PV UUID mxzbCY-TNVU-lp5O-u8Ul-QxhV-9MNb-uqgP9t
2.#vgdisplay
#lvdisplay
lvdisplay
--- Logical volume ---
LV Name /dev/system/root_lv
VG Name system
LV UUID rcX1xI-7bET-3tXL-KOGL-Xxje-QjqY-AXAirk
LV Write Access read/write
LV Status available
# open 2
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/system/usr_lv
VG Name system
LV UUID xUJidw-nGZy-NbnQ-WI66-eNSH-Mlxj-xowXnF
LV Write Access read/write
LV Status available
# open 2
LV Size 8.00 GB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
--- Logical volume ---
LV Name /dev/system/tmp_lv
VG Name system
LV UUID h5CMsf-zMZ1-Kf63-1sjl-Og27-9exV-s1fs3L
LV Write Access read/write
LV Status available
# open 2
LV Size 3.00 GB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2
--- Logical volume ---
LV Name /dev/system/var_lv
VG Name system
LV UUID 0qnXiv-cg0h-6nl9-lTZg-bV5n-RDX7-oYADIL
LV Write Access read/write
LV Status available
# open 2
LV Size 3.00 GB
Current LE 768
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3
--- Logical volume ---
LV Name /dev/system/srv_lv
VG Name system
LV UUID s3TRWS-kH3G-zh6n-SMoT-V7vy-OpXX-uENrmR
LV Write Access read/write
LV Status available
# open 2
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:4
--- Logical volume ---
LV Name /dev/system/opt_lv
VG Name system
LV UUID wBTsy2-VZ2Y-F2GW-m1r7-Zg52-USpV-0FzLW5
LV Write Access read/write
LV Status available
# open 2
LV Size 4.00 GB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
--- Logical volume ---
LV Name /dev/system/home_lv
VG Name system
LV UUID fD4e08-wecZ-QaiK-OKzn-AE5O-vBfV-7W58pm
LV Write Access read/write
LV Status available
# open 2
LV Size 30.00 GB
Current LE 7680
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:6
FS is reiserfs, Also wondering if I can do this extention on the fly !
Most importantly , Thank you !!
upengan78,
You still have a lot of unused disk space.
You have two PV's combined space of "201.96 GB" in a VG called "system" and you have free 145.96 GB. You can try this command to extend the reiser without unmounting.
#lvextend -L+7G /dev/system/var_lv
#resize_reiserfs -s+7G -f /dev/system/var_lv
Note that the command set to 7 GB to /var as /var already has 3 GB(10GB that you want to allocate right?). Or if you want to make it bigger.
Cheers!
csorhand:
upengan78,
You still have a lot of unused disk space.
You have two PV's combined space of "201.96 GB" in a VG called "system" and you have free 145.96 GB. You can try this command to extend the reiser without unmounting.
#lvextend -L+7G /dev/system/var_lv
#resize_reiserfs -s+7G -f /dev/system/var_lv
Note that the command set to 7 GB to /var as /var already has 3 GB(10GB that you want to allocate right?). Or if you want to make it bigger.
Cheers!
csorhand, you are awsome! worked like charm! I have got now /var extended on the fly. Thanks for your kind help! I appreciate it.