1827868 Members
832 Online
109969 Solutions
New Discussion

Re: Reconfiguring disk

 
SOLVED
Go to solution
Ferdi Castro
Advisor

Reconfiguring disk

Hi,
I just finished installing RH4 in a DL380G4 machine with 146G disk.
However, everything was in the / directory when I do df -k. I want somehow to partition it such that it would be mounted to diff lvol like below

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 6048352 229676 5511436 5% /
/dev/mapper/vg0-lvol7
45380656 4864628 38210800 12% /backup
/dev/cciss/c0d0p1 256666 19200 224214 8% /boot
none 1990300 0 1990300 0% /dev/shm
/dev/mapper/vg0-lvol3
4031680 40920 3785960 2% /home
/dev/mapper/vg0-lvol6
25222252 116996 23824028 1% /log
/dev/mapper/vg0-lvol2
4031680 1000524 2826356 27% /opt
/dev/mapper/vg0-lvol5
4031680 40840 3786040 2% /tmp
/dev/mapper/vg0-lvol1
6063688 2550260 3205412 45% /usr
/dev/mapper/vg0-lvol4
8063408 172072 7481736 3% /var

Do I need to reinstall or can you help me with procedures to reconfigure it. thanks much.

BR
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: Reconfiguring disk

You probably don't have enough "spare" space to create new logical volumes to move the data. So, probably, your best option is reinstall if you "just finished" the installation.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ferdi Castro
Advisor

Re: Reconfiguring disk

Thanks for the prompt reply. I was thinkin samething. I have problems reinstalling it. Is it the same as putting the first RH disk1 then reconfigure it? I remember I forgot to manually partition it thats why it automatically did the default one. during partitioning will it automatically map lets say /usr to lvol1 then var to lvol 4 and so on.........

BR Ferdi
Ivan Ferreira
Honored Contributor
Solution

Re: Reconfiguring disk

You must manually reconfigure the logical volumes if you want another filesystem layout than the default "all in /".

See:

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/ch-lvm.html

It's an old version, if you check the RHEL installation guide you find the same information.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ferdi Castro
Advisor

Re: Reconfiguring disk

Thanks for the guide it will help a lot