- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to view the expanded LUN on Suse OS on VM
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
Forums
Discussions
Discussions
Discussions
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
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-13-2010 08:37 AM
06-13-2010 08:37 AM
Stroage team has expanded a EVA LUN from 3GB to 4GB size.
VMware team has rescanned the HBA's on all ESX hosts.
On VMguest we have Suse 10.2 loaded and I am sure If I reboot the server the newly expanded size would be visible in fdisk.
I am trying to avoid the reboot. Is there any way?
I have tried the following:
echo "- - -" >/sys/class/scsi_host/host0/scan
echo "- - -" >/sys/class/scsi_host/host1/scan
#!/bin/bash
for HOST in `ls /sys/class/scsi_host`; do echo '- - -' > /sys/class/scsi_host/$HOST/scan; done
CPATH=`pwd`
cd /dev
for DEVICE in `ls sd[a-z]`; do echo '1' > /sys/block/$DEVICE/device/rescan; done
cd $CPATH
Please help me !!.
Thanks in Advance.
Venkat.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2010 08:51 PM
06-13-2010 08:51 PM
SolutionCheck current size by:
Linux: ~# blockdev --getsz /dev/sdX
Will display 3GB
Recognize new size of each path (sd device) by:
Linux: ~# blockdev --rereadpt /dev/sdX
And check whether new size is got
Linux: ~# blockdev --getsz /dev/sdX
Will display 4GB
Let me know if it works, and don't forget to assign points.!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2010 08:56 PM
06-13-2010 08:56 PM
Re: How to view the expanded LUN on Suse OS on VM
here is our step-by-step howto (working with EVA's, generaly with everything)
1. add space on storage (in EVA - CommandView, local - HP ACU)
2. rescan partitions (need kernel 2.6+)
echo 1 > /sys/bus/scsi/devices/0\:0\:0\:0/rescan
(more on Linux Journal : http://www.linuxjournal.com/article/7321 )
3. create new partition with fdisk
Fdisk /dev/sda (n,t,w)
4. tell kernel to recognize new partition !!:
partprobe
5. Create volume:
pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created
6. Extend group:
vgextend VolGroup00 /dev/sda3
Volume group "VolGroup00" successfully extended
7. check if done ok:
pvscan
8. extend LVM partition (here +30GB)
lvextend -L +30G /dev/VolGroup00/LogVol00
9. resize filesystem: resize2fs /dev/mapper/VolGroup00-LogVol00
10. done - online resize of filesystem.
I hope this HELPS
JAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2010 08:00 AM
06-14-2010 08:00 AM
Re: How to view the expanded LUN on Suse OS on VM
Thanks for the information Gerardo. I tested and it worked fine as expected.
I have assigned the points as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2010 08:47 AM
06-14-2010 08:47 AM
Re: How to view the expanded LUN on Suse OS on VM
1. Storage team expands the LUN
2. Did evainfo -a to verify the expanded size
3. blockdev --getsz /dev/sdc
4. blockdev --rereadpt /dev/sdc
5. blockdev --getsz /dev/sdc
6. fdisk -l shows up newly expanded size
Thanks and regards,
Venkatesan.