LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 02:19 AM   #1
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Rep: Reputation: 5
"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?
 
Old 09-20-2010, 02:31 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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
 
Old 09-20-2010, 03:23 AM   #3
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by prayag_pjs View Post
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
 
Old 09-20-2010, 04:33 AM   #4
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
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??

Last edited by adenial; 09-20-2010 at 04:56 AM.
 
Old 09-20-2010, 05:57 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Can you show the results of the following cmds
Code:
fdisk -l

cat /etc/fstab

df -h
all as the root user
 
Old 09-20-2010, 06:02 AM   #6
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
Quote:
Originally Posted by adenial View Post
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?
 
Old 09-20-2010, 07:04 AM   #7
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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
 
Old 09-20-2010, 09:43 AM   #8
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
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.
 
Old 09-20-2010, 10:03 AM   #9
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
Quote:
Originally Posted by adenial View Post
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?
 
Old 09-20-2010, 10:12 AM   #10
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by arashi256 View Post
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
 
Old 09-20-2010, 10:20 AM   #11
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 18.04 / CentOS 7.6
Posts: 397

Rep: Reputation: 62
Quote:
Originally Posted by adenial View Post
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.
 
Old 09-20-2010, 11:44 AM   #12
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
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?
 
Old 09-20-2010, 01:30 PM   #13
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
anybody have idea?
 
Old 09-21-2010, 02:17 AM   #14
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
Can somebody throw some light on this thread. I am struck.
 
Old 09-21-2010, 02:58 AM   #15
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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.

Last edited by prayag_pjs; 09-21-2010 at 03:00 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Net-SNMP - Run a command as root with "extend" feature gimpy530 Linux - Software 0 07-13-2010 09:03 PM
LXer: Contest Winners Announced in "Extend Firefox 3" Competition LXer Syndicated Linux News 0 08-26-2008 03:40 PM
i downloaded a [B][SIZE="4"].iso[/SIZE][/B] how can i run it from the hard in FC8 Muhammed Linux - Software 1 07-04-2008 08:08 PM
Usage of "k size" option in "tar" ?? kcarun Solaris / OpenSolaris 4 08-20-2007 02:59 PM
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration