- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Extending disk in LINUX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 07:44 AM
тАО06-11-2009 07:44 AM
Extending disk in LINUX
I have RHEL-5 installed. Its a VMware VM (SCSI adapter-LSI Logic).
I have extended the virtual disk (/dev/sda1--boot; /dev/sda2--LVM) from the VMware end.
How to extend the disk in LINUX??
Is it possible to do without rebooting VM?
Regards,
Nagu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 09:06 AM
тАО06-11-2009 09:06 AM
Re: Extending disk in LINUX
If the system is configured with lvm, use lvextned
If not, there is nothing you can do.
It is possible to extend without booting the vm machines. It is not really possible to get any of them to use more space without a hard reboot.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 11:21 PM
тАО06-11-2009 11:21 PM
Re: Extending disk in LINUX
Thanks for the reply.
I need to extend the disk size (pv size) in LINUX. lvextend will not give any option to extend the existing disk.
Please see my partition info.
[root@unixtest ~]# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 6549 MB, 6549824512 bytes
255 heads, 63 sectors/track, 796 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 652 5132767+ 8e Linux LVM
Here I have extended the disk by 1.1GB. But how do I extend /dev/sda2 which is LVM?
And also, what is the command in LINUX to detect the new disks? (Is it possible withour rebooting machine?)
Nagu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 11:48 PM
тАО06-11-2009 11:48 PM
Re: Extending disk in LINUX
to scan sc scsibusses for new disks
find your controller under
/sys/class/scsi_host/hostX/
by e.g.
# cat /sys/class/scsi_host/host*/proc_name
then
# echo "- - - " > /sys/class/scsi_host/host$X/scan
check dmesg output for new disks.
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 12:44 AM
тАО06-12-2009 12:44 AM
Re: Extending disk in LINUX
I could scan the new LUN with the help of rescan-scsi-bus.sh
But how to extend the disk in redhat?
Regards,
Nagu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2009 09:35 AM
тАО06-12-2009 09:35 AM
Re: Extending disk in LINUX
http://www.sysresccd.org/Main_Page
Boot the virtual off the iso. once it is up run startx. then open a terminal in the gui and run gparted. Choose your disk in gparted and resize the partition. Once all that is done, boot back into the OS and run vgextend, lvextend, resize2fs,etc.
basically you need a live cd with gparted on it.