Sponsored Content
Operating Systems Linux Red Hat Fdisk reports the old size after disk resize Post 302859505 by maverick_here on Thursday 3rd of October 2013 10:38:52 AM
Old 10-03-2013
Fdisk reports the old size after disk resize

Hi,

I'm running a Red Hat Enterprise Linux Server release 5.3 (Tikanga) on VMWare. It is a production system for which I may not get downtime soon. I happened to resize a underlying disk and the changes are not reflecting in the fdisk ouput. Further details are as follows.

The disk which i have extended is /dev/sdv. I have done it as follows

Extended the underlying VMDisk from 38 GB to 50 GB in the Edit windows of the virtual machine


On the OS ( Linux ) I ran the following command for the changes to be picked up

Code:
echo 1 > /sys/class/scsi_disk/1:0:4:0/device/rescan

Following was the output logged in the /var/log/messages

Code:
Oct  3 11:14:08 ########### kernel: SCSI device sdv: 75497472 512-byte hdwr sectors (38655 MB)
Oct  3 11:14:08 ########### kernel: sdv: Write Protect is off
Oct  3 11:14:08 ########### kernel: sdv: cache data unavailable
Oct  3 11:14:08 ########### kernel: sdv: assuming drive cache: write through
Oct  3 11:14:31 ########### kernel: SCSI device sdv: 75497472 512-byte hdwr sectors (38655 MB)
Oct  3 11:14:31 ########### kernel: sdv: Write Protect is off
Oct  3 11:14:31 ########### kernel: sdv: cache data unavailable
Oct  3 11:14:31 ########### kernel: sdv: assuming drive cache: write through
Oct  3 11:44:20 ########### kernel: SCSI device sdv: 104857600 512-byte hdwr sectors (53687 MB)
Oct  3 11:44:20 ########### kernel: sdv: Write Protect is off
Oct  3 11:44:20 ########### kernel: sdv: cache data unavailable
Oct  3 11:44:20 ########### kernel: sdv: assuming drive cache: write through

Now when I did a

Code:
partprobe /dev/sdv

The disk size shown in fdisk did NOT change.


Code:
Disk /dev/sdv: 38.6 GB, 38654705664 bytes
255 heads, 63 sectors/track, 4699 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdv1               1         872     7004308+  83  Linux
/dev/sdv2             873        4699    30740377+  83  Linux


I have done this in the past without requiring a reboot.Any idea.


Thanks in Advance
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Resize root disk slices

I have a Sun box running Solaris 9. My root disk was slices too small when it was installed and I am now at 99% capacity for my root partition. Is it possible, and if so how?, to increase the size of slice 0 and decrease the size of slice 7?? Thanks! Current partition table... (6 Replies)
Discussion started by: FredSmith
6 Replies

2. UNIX Desktop Questions & Answers

Resize the default window size

Hi, How can I resize the terminal window's default size in CDE (Solaris)? Regards, Sharif. (1 Reply)
Discussion started by: sharif
1 Replies

3. Solaris

Resize disk space

I am trying to resize my disk space to be bigger on my solaris server (Sun Fire V240) this server and other windows servers are attached to a SAN disks, the disk I want to resize is on the SAN. I have free space on the SAN disks so I added some space to the windows disks and I made some... (8 Replies)
Discussion started by: sofihdi
8 Replies

4. Solaris

Fdisk partitions on boot disk and disaster recovery

I'm preparing to recover a Oracle Fire X4170 server in a disaster recovery test at a different location than in prod. I have some questions about fdisk partitions. I'm using Solaris 10 update 10. On my prod server, the boot disk has 2 partitions, diagnostic and solaris. Is the diagnostic... (1 Reply)
Discussion started by: TKD
1 Replies

5. UNIX for Dummies Questions & Answers

add disk redhat, fdisk -l doesn't work

i'm trying to add disk to red hat , use fdisk -l but it doesn't recognize it what should i do it to get it works? (3 Replies)
Discussion started by: prpkrk
3 Replies

6. Shell Programming and Scripting

Want to resize images for a specific size on server - Please help

,,,,,, (4 Replies)
Discussion started by: Praveen Pandit
4 Replies

7. Red Hat

Make a disk disappear from fdisk output

Hello, 1 ) Fdisk -l # Displays all the disk with partition table information My Query ) A ) How can i make one disk ex: /dev/sdd not visible in fdisk -l output ? B) From where fdisk -l collect and display the information ? (8 Replies)
Discussion started by: saurabh84g
8 Replies
lx(5)							Standards, Environments, and Macros						     lx(5)

NAME
lx - Linux branded zone DESCRIPTION
The lx brand uses the branded zones framework described in brands(5) to enable Linux binary applications to run unmodified on a machine with a Solaris Operating System kernel. The lx brand includes the tools necessary to install a CentOS 3.x or Red Hat Enterprise Linux 3.x distribution inside a non-global zone. The brand supports the execution of 32-bit Linux applications on x86/x64 machines running the Solaris system in either 32-bit or 64-bit mode. Supported Linux Distributions The lx brand emulates the system call interfaces provided by the Linux 2.4.21 kernel, as modified by Red Hat in the RHEL 3.x distributions. This kernel provides the system call interfaces consumed by the glibc version 2.3.2 released by Red Hat. In addition, the lx brand partially emulates the Linux /dev and /proc interfaces. Configuration and Administration The lx brand supports the whole root non-global zone model. All of the required linux packages are installed into the private file systems of the zone. The zonecfg(1M) utility is used to configure an lx branded zone. Once a branded zone has been installed, that zone's brand cannot be changed or removed. The zoneadm(1M) utility is used to report the zone's brand type and administer the zone. The zlogin(1) utility is used to log in to the zone. Application Support The lx zone only supports user-level Linux applications. You cannot use Linux device drivers, Linux kernel modules, or Linux file systems from inside an lx zone. You cannot add any non-standard Solaris devices to a Linux zone. Any attempt to do so will result in a zone that zonecfg(1M) will refuse to verify. You cannot run Solaris applications inside an lx zone. Solaris debugging tools such as DTrace (see dtrace(1M)) and mdb (see mdb(1)) can be applied to Linux processes executing inside the zone, but the tools themselves must be running in the global zone. Any core files generated are produced in the Solaris format, and such files can only be debugged with Solaris tools. ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWlxr, SUNWlxu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
mdb(1), zlogin(1), zonename(1), dtrace(1M), zoneadm(1M), zonecfg(1M), brands(5), zones(5), lx_systrace(7D) SunOS 5.11 19 Sep 2006 lx(5)
All times are GMT -4. The time now is 10:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy