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
resize(1X)							     MIT X11R4								resize(1X)

Name
       resize - utility to set TERMCAP and terminal settings to current window size

Syntax
       resize [-u] [-s [row col]]

Description
       The  uitility  prints  a  shell command for setting the TERM and TERMCAP environment variables to indicate the current size of xterm window
       from which the command is run. For this output to take effect, resize must either be evaluated as part of the command  line  (usually  done
       with  a	shell alias or function) or else redirected to a file which can then be read in. From the C shell (usually known as /bin/csh), the
       following alias could be defined in the user's .cshrc:

	   % alias rs 'set noglob; `eval resize`'

       After resizing the window, the user would type:

	   % rs

       Users of versions of the Bourne shell (usually known as /bin/sh) that do not have command functions will need to send the output to a  tem-
       porary file and the read it back in with the ``.'' command:

	   $ resize >/tmp/out
	   $ . /tmp/out

Options
       The following options may be used with resize:

       -u      This option indicates that Bourne shell commands should be generated even if the user's current shell is not /bin/sh.

       -c      This option indicates that C shell commands should be generated even if the user's current shell is not /bin/csh.

       -s [rows columns]
	       This option indicates that the Sun console escape sequences will be used instead of the special xterm escape code. If rows and col-
	       umns are given, resize will ask the xterm to resize itself. However, the window manager may choose to disallow the change.

Restrictions
       The -u or -c must appear to the left of -s if both are specified.

       There should be some global notion of display size; termcap and terminfo need to be rethought in the context of window systems.	(Fixed	in
       4.3BSD, and ULTRIX-32 1.2)

Files
       For the base termcap entry to modify.

       User's alias for the command.

See Also
       csh(1), tset(1), xterm(1X)

																	resize(1X)
All times are GMT -4. The time now is 10:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy