Operating System - Linux
1753859 Members
7295 Online
108809 Solutions
New Discussion юеВ

Re: Regarding disk partitioning and lvols

 
sanwin
Frequent Advisor

Regarding disk partitioning and lvols

Hi,
During linux installation i have not partitioned the disk and it got configured like this.

[root@ ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
66815628 2774296 60592500 5% /
/dev/cciss/c0d0p1 98747 13264 80384 15% /boot
tmpfs 970636 0 970636 0% /dev/shm


Now i want to create separate filesystems for/usr, /opt etc. But as the whole disk is already allocated to / I am not able to do it.

Please let me know how can i do.

Is there any way to configure it now or should we reinstall only.


thanks!!

regards,
sanwin.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Regarding disk partitioning and lvols

Shalom,

Options:
1) reinstall the system.
2) use resize2fs to reduce the file system, then lvreduce or lvextend to modify the size of the logical volume, followed by lvcreate,lvextend,newfs to create new logical volumes with filesystems.

I am not sure option 2 will work, but in theory it should.

system-config-lvm
This utility may be useful in taking care of part of this process.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Regarding disk partitioning and lvols

If this is a new installation, your best option is to do it again. Reducing and resizing the size of the root partition is a hard job.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
SKR_1
Trusted Contributor

Re: Regarding disk partitioning and lvols

Simple and easiest way is to Reinstall the linux machine again. Its not better choice to use lvreduce,lvcreate commands here.

Thanks
SKR
Jeeshan
Honored Contributor

Re: Regarding disk partitioning and lvols

no way other than reinstallation.
a warrior never quits