- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to get Linux to see expanded partition siz...
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
02-03-2011 06:11 AM
02-03-2011 06:11 AM
How to get Linux to see expanded partition size on cciss RAID migrated from RAID 1 to RAID 1+0
I have migrated/expanded a RAID-1 (2 x 72GB) array on a proliant DL360 G5 (SmartArray p400i) to a RAID-10 (4 x 72GB) via hpacucli. The server runs CentOS 5.5 x86_64. Once the expansion was done, the size appears to show correctly in /sys:
cat /sys/block/cciss\!c0d0/size
286611840
I ran 'partprobe /dev/cciss/c0d0' to re-read the device, however fdisk still shows the device size to be 72GB.
I can't find anything in /sys or /proc which would allow me to tell the kernel of the new size, though an HP doc says the cciss driver should do this automatically
"The cciss driver communicated directly with the block layer to inform it of size changes
in the underlying logical disk devices."
(source: http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02677069/c02677069.pdf)
Aside from a reboot, is there anyway I can get the kernel to see the new size of the underlying device?
Regards,
Campbell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2011 12:34 AM
02-04-2011 12:34 AM
Re: How to get Linux to see expanded partition size on cciss RAID migrated from RAID 1 to RAID 1+0
What file system are you using?
try www.partedmagic.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2011 02:46 AM
02-04-2011 02:46 AM
Re: How to get Linux to see expanded partition size on cciss RAID migrated from RAID 1 to RAID 1+0
Try:
sfdisk -R
Regards,
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2011 06:58 AM
02-04-2011 06:58 AM
Re: How to get Linux to see expanded partition size on cciss RAID migrated from RAID 1 to RAID 1+0
cd /sys/class/scsi_host
for host in host*;do
echo "- - -" >${host}/scan
done
If that fails (as it faied in another posting not too long ago) then reboot. Said technique always works though on my SAN Based RAID disks when I perform online expnsion.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2011 07:31 AM
02-04-2011 07:31 AM
Re: How to get Linux to see expanded partition size on cciss RAID migrated from RAID 1 to RAID 1+0
Thanks for the suggestions.
I ended up rebooting the box as I'd run out of time to get it finished. I will do this on a test server sometime though, as I would like to see if I can get it to work.
Re: sfdisk - I saw this and contemplated it but never tried it, on the basis that 'partprobe' never worked. But I had nothing to lose by trying so should have :-)
Re: /sys/class/scsi: I'd seen this suggestion somewhere else to, and not sure why, but there are no hosts in /sys/class/scsi, the directory is empty. Not sure what populates this directory.
I am interested as to why this didn't work, since the new size was reported in /sys. Not sure what block layer or whatever needs to be updated :-/
Cheers,
Campbell