LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "Need to extend the size of /" (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-extend-the-size-of-833284/)

adenial 09-20-2010 02:19 AM

"Need to extend the size of /"
 
Hi,
I am facing problems with RHEL5, everything was fine till yesterday but now it tell me i dont have enough space in /.
Well due to which i cannot activate my run level5, and to startx command only runs if I remove /tmp/.X0-lock command and worse part my arrow keays not working. Resulting i need to type every command even if i am using the same command consecutively...

can i exten / by lvextend ?

or if i extend /hame or something like that will it work?
Is the arrow key problem arise of same reason?

prayag_pjs 09-20-2010 02:31 AM

Hi,

If at the time of installation itself if you have defined LVM then its possible or you can create soft links to / but thats the temporary solution.

refer this link .. for extending lvm

http://forums.fedoraforum.org/showthread.php?t=154625

adenial 09-20-2010 03:23 AM

Quote:

Originally Posted by prayag_pjs (Post 4103078)
Hi,

If at the time of installation itself if you have defined LVM then its possible or you can create soft links to / but thats the temporary solution.

refer this link .. for extending lvm

http://forums.fedoraforum.org/showthread.php?t=154625

I am not able to find VolGroup name of /, it shows mounted on /
whats the syntax to check volgropup name

adenial 09-20-2010 04:33 AM

Iam struck,
well the volume group is VolGroup00 & logical volume is LogVol00
but when i run the command vgextend VolGroup00 /dev/sda8
It says volume group not found.
can it be because i have WindowsXP in my /dev/sda1, which falls under same Volgroup??

chrism01 09-20-2010 05:57 AM

Can you show the results of the following cmds
Code:

fdisk -l

cat /etc/fstab

df -h

all as the root user

arashi256 09-20-2010 06:02 AM

Quote:

Originally Posted by adenial (Post 4103155)
Iam struck,
well the volume group is VolGroup00 & logical volume is LogVol00
but when i run the command vgextend VolGroup00 /dev/sda8
It says volume group not found.
can it be because i have WindowsXP in my /dev/sda1, which falls under same Volgroup??

Is /dev/sda8 the partition onto which you wish to extend your Logical Volume? Has it been partitioned for use with LVM?

prayag_pjs 09-20-2010 07:04 AM

Hi,

here you please post the output of

Code:

fdisk -l
Code:

df -h
Code:

mount
Code:

pvdisplay
Code:

vgdisplay
and

Code:

lvdisplay
We will get the rough idea as to how to guide you and give you the exact command

adenial 09-20-2010 09:43 AM

I dont know whats happened, everything is changed.
Nothing is working





think some1 got into my syatem and notorious made all changes...left it as a piece of crap.

arashi256 09-20-2010 10:03 AM

Quote:

Originally Posted by adenial (Post 4103374)
I dont know whats happened, everything is changed.
Nothing is working





think some1 got into my syatem and notorious made all changes...left it as a piece of crap.

Terrific - can you please follow some of the above advice?

adenial 09-20-2010 10:12 AM

Quote:

Originally Posted by arashi256 (Post 4103210)
Is /dev/sda8 the partition onto which you wish to extend your Logical Volume? Has it been partitioned for use with LVM?

i want to extend it as vol Group, with the vol group of /, as there is no space in / partition

arashi256 09-20-2010 10:20 AM

Quote:

Originally Posted by adenial (Post 4103400)
i want to extend it as vol Group, with the vol group of /, as there is no space in / partition

I realise that - do you have space on the current partition to extend space into or do you have a new partition to extend onto? If you follow some of the advice given by other users, we might have more information with which to help you. As it is, you've given us nothing to go on.

adenial 09-20-2010 11:44 AM

this is my fdisk -l have to say:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 12748 102398278+ 7 HPFS/NTFS
/dev/sda2 12749 14023 10241437+ 83 Linux
/dev/sda3 14024 14154 1052257+ 82 Linux swap / Solaris
/dev/sda4 14155 19457 42596347+ 5 Extended
/dev/sda5 14155 14277 987966 83 Linux
/dev/sda6 14278 14339 497983+ fd Linux raid autodetect
/dev/sda7 14340 14401 497983+ fd Linux raid autodetect
/dev/sda8 14402 16834 19543041 83 Linux

Disk /dev/md0: 509 MB, 509804544 bytes
2 heads, 4 sectors/track, 124464 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/sdb: 2019 MB, 2019557376 bytes


cat etc/fstab

LABEL=/ / ext3 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/sda5 /mnt ext3 defaults 0 0
=================




19 heads, 18 sectors/track, 11533 cylinders
Units = cylinders of 342 * 512 = 175104 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 24 11534 1968128 b W95 FAT32



this is my df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.5G 9.5G 0 100% /
tmpfs 1.5G 0 1.5G 0% /dev/shm
/dev/sda5 950M 18M 885M 2% /mnt


lvs and pvs got nothing to say but pvs say this:

PV VG Fmt Attr PSize PFree
/dev/sda8 lvm2 -- 18.64G 18.64G


===

and cmd vgextend VolGroup00 /dev/sd8 say
VolGroup00 not found


where do i go from here?

adenial 09-20-2010 01:30 PM

anybody have idea?

adenial 09-21-2010 02:17 AM

Can somebody throw some light on this thread. I am struck.

prayag_pjs 09-21-2010 02:58 AM

Hi from your df -h we can see you dont have LVM defined

if you have LVM on / it looks like this :

Code:

/dev/mapper/VolGroup00-LogVol00 105G  44G  56G  45% /

lvdisplay gives

Code:

--- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                Rf38eE-bisw-j1Ff-5jh1-9rcL-kkR6-BmSqwl
  LV Write Access        read/write
  LV Status              available
  # open                1
  LV Size                107.94 GB
  Current LE            3454
  Segments              1
  Allocation            inherit
  Read ahead sectors    0
  Block device          253:0
 
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                McpxWC-N3GI-1pTt-DFC5-DDVZ-LXL4-RqpIQG
  LV Write Access        read/write
  LV Status              available
  # open                1
  LV Size                1.94 GB
  Current LE            62
  Segments              1
  Allocation            inherit
  Read ahead sectors    0
  Block device          253:1

and
vgdisply give output like this
Code:

--- Volume group ---
  VG Name              VolGroup00
  System ID           
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access            read/write
  VG Status            resizable
  MAX LV                0
  Cur LV                2
  Open LV              2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size              109.88 GB
  PE Size              32.00 MB
  Total PE              3516
  Alloc PE / Size      3516 / 109.88 GB
  Free  PE / Size      0 / 0 
  VG UUID              DRlMqC-GSVc-y2sr-ygHh-0vqV-v9Me-LlnaDw

Every thin will be much more complicated if we try to resize your / partition with some other tool,better restructure your hard drive ,take backup and reinstall the system.


All times are GMT -5. The time now is 08:33 AM.