Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Actually i'am on linux redhat 6.4 enterprise and i would like to resize /dev/sdb2 partition ,this partion is not LVM .however i added space into the disk /dev/sdb but i found too complicate to resize my sdb2 partition ./dev/sdb2 contain an FS for oracle database and i'm affraid to lose data .pleaaaaase help
First you should backup before try anything. (And should be doing regular backups anyway.)
It seems you should be able to use fdisk or parted to increase the space of partition 2 to the new size. Just make sure fdisk -l /dev/sdb is showing the new space you added. Partitioning does not do a low level format so shouldn't cause a problem but I use LVM so haven't needed to do this.
You'd then just resize the filesystem that is using partition /dev/sdb2 (e.g. using resize2fs or resize4fs for ext2/ext3 or ext4 filesystems).
/dev/sdb2 contain an FS for oracle database and i'm affraid to lose data
Then make backups. Filesystem operations like resizing can fail at any time, so you have to have a backup before doing anything (you should have them in any case also when not doing system critical stuff, if your harddisk dies tomorrow you also will loose your data).
Anyways, to help you we need more information from you:
- which type of disk
- actual disk layout, provide the output of
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 2 501 512000 83 Linux
La partition 1 ne se termine pas sur une frontière de cylindre.
/dev/sda2 502 35840 36187136 8e Linux LVM
La partition 2 ne se termine pas sur une frontière de cylindre.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.