Sponsored Content
Operating Systems Linux Red Hat Increase Linux partition size Post 302490026 by asela115 on Sunday 23rd of January 2011 01:38:00 PM
Old 01-23-2011
Increase Linux partition size

Hi All,

this should be probably a already asked question but highly appreciate if someone can guide me on this

i have a business critical linux system (which is running a SMS system) where one of it's partition size is shrinking
i want to know the possible options of increasing the size of that partition without having any downtime(system reboot etc..).

fdisk and df -h outputs are as below (the partition with issue is bases)

Code:
[lkcopr01 bdb2]# fdisk -l

Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes
255 heads, 32 sectors/track, 17433 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot    Start       End    Blocks   Id  System
/dev/cciss/c0d0p1   *         1        64    261104   83  Linux
/dev/cciss/c0d0p2            65       578   2097120   82  Linux swap
/dev/cciss/c0d0p3           579      1092   2097120   82  Linux swap
/dev/cciss/c0d0p4          1093     17433  66671280    f  Win95 Ext'd (LBA)
/dev/cciss/c0d0p5          1093      7500  26144624   83  Linux
/dev/cciss/c0d0p6          7501      9042   6291344   83  Linux
/dev/cciss/c0d0p7          9043      9556   2097104   82  Linux swap
/dev/cciss/c0d0p8          9557     10070   2097104   82  Linux swap
/dev/cciss/c0d0p9         10071     17433  30041024   83  Linux
[lkcopr01 bdb2]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p6     6.0G  2.6G  3.1G  47% /
/dev/cciss/c0d0p9      29G   26G  971M  97% /bases
/dev/cciss/c0d0p1     247M   15M  220M   7% /boot
/dev/cciss/c0d0p5      25G   17G  6.5G  73% /home
none                  2.0G     0  2.0G   0% /dev/shm
lkcocm01:/mnt/mms/mail/0
                      136G  125G   12G  92% /bases/mms/mail/0
lkcocm01:/mnt/mms/tmp
                      136G  125G   12G  92% /bases/mms/tmp
lkcocm01:/mnt/mms/mms_cdr
                      136G  125G   12G  92% /home/proxy/var/log/chc

please help on this since i don't think i can manage this partition for long periodSmilie

thanks
Asela

---------- Post updated 01-24-11 at 12:08 AM ---------- Previous update was 01-23-11 at 11:57 PM ----------

i have heard about LVM but don't know can use same regarding this case(without rebooting and with out losing any data)

Last edited by Scott; 01-23-2011 at 02:39 PM.. Reason: Use code tags, please...
 

10 More Discussions You Might Find Interesting

1. AIX

Increase a logical partition

hello I have a volume group of 737 Go (EMC) To add 250 Go, i split the 250 Go to 2*125 No problem to add in the volum group, but when i want to increase the size of the logical volume, i have the message : 0516-787 extendlv: Maximum allocation for logical volume simdatabaselv is... (3 Replies)
Discussion started by: pascalbout
3 Replies

2. Solaris

how to increase size of the root partition

Hi we have a sunfire v880 server . we have a problem with root partion it showing 90% full. so anyone can help me how to increase the size of that partion. NOTE: It is not in veritas & SVM control. Regards prakash (6 Replies)
Discussion started by: pshelke
6 Replies

3. Red Hat

Increase mount point size after linux installation !

Dear Friends , I have to install Redhat Ent Linux 5.0 (RHEL 5) in my machine . My HDD space is total 40 GB . During installation , I give three partitions , '/' = 30GB, 'swap'=2GB, 'home' =1GB. Now my HDD remaining space is 7 GB . After installation , I need to increase the home... (4 Replies)
Discussion started by: shipon_97
4 Replies

4. HP-UX

Increase of partition Size In HP-UX

Experts, I want to know how to increase partion size in Hp-ux.Actually we installed oracle in separate part ion.As increase of database went to 99% :eek:.What ever data which is in it is important.so i dont want to delete any data in that partion.Now the size of that is 250 GB.I want the same to... (2 Replies)
Discussion started by: naveennella
2 Replies

5. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

6. Red Hat

Increase root partition in LVM

I have a RHEL6 guest running on vmware esx server and the root disk size is 30G and i increased the disk size and create another partition /dev/sda3 but i do not know how to increase the size of the VG and then intrun LV .. can anyone help me on this . fdisk -l /dev/sda Disk /dev/sda:... (1 Reply)
Discussion started by: fugitive
1 Replies

7. Red Hat

increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 77G 16G 75G 98% / /dev/sda1 2.4G 82M 2.2G 4% /boot tmpfs 3.8G 0 3.8G 0%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

8. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

9. Solaris

Increase the / partition

Hi all im new to solaris and i got the task to increase the size of the / partition. its solaris 9 update6 running in a vmware esxi. i already added space on the VM, when im trying the "growfs" command im gettings error. see attached picture: http://i.imgur.com/9ywWLNN.png thanks for... (5 Replies)
Discussion started by: guy3145
5 Replies

10. Linux

Linux RPM package Size Increase

Hi I want to create a rpm package which includes my testsuites, images(big sizes).But Its rpm size is more than 2GB. please help me to create a package for more than 2GB / where will i override the already configured rpm size to change the limitation of the rpm size since creating 2 or more... (1 Reply)
Discussion started by: SA_Palani
1 Replies
CCISS(4)						     Linux Programmer's Manual							  CCISS(4)

NAME
cciss - HP Smart Array block driver SYNOPSIS
modprobe cciss [ cciss_allow_hpsa=1 ] DESCRIPTION
Note: This obsolete driver was removed from the kernel in version 4.14, as it is superseded by the hpsa(4) driver in newer kernels. cciss is a block driver for older HP Smart Array RAID controllers. Options cciss_allow_hpsa=1: This option prevents the cciss driver from attempting to drive any controllers that the hpsa(4) driver is capable of controlling, which is to say, the cciss driver is restricted by this option to the following controllers: Smart Array 5300 Smart Array 5i Smart Array 532 Smart Array 5312 Smart Array 641 Smart Array 642 Smart Array 6400 Smart Array 6400 EM Smart Array 6i Smart Array P600 Smart Array P400i Smart Array E200i Smart Array E200 Smart Array E200i Smart Array E200i Smart Array E200i Smart Array E500 Supported hardware The cciss driver supports the following Smart Array boards: Smart Array 5300 Smart Array 5i Smart Array 532 Smart Array 5312 Smart Array 641 Smart Array 642 Smart Array 6400 Smart Array 6400 U320 Expansion Module Smart Array 6i Smart Array P600 Smart Array P800 Smart Array E400 Smart Array P400i Smart Array E200 Smart Array E200i Smart Array E500 Smart Array P700m Smart Array P212 Smart Array P410 Smart Array P410i Smart Array P411 Smart Array P812 Smart Array P712m Smart Array P711m Configuration details To configure HP Smart Array controllers, use the HP Array Configuration Utility (either hpacuxe(8) or hpacucli(8)) or the Offline ROM-based Configuration Utility (ORCA) run from the Smart Array's option ROM at boot time. FILES
Device nodes The device naming scheme is as follows: Major numbers: 104 cciss0 105 cciss1 106 cciss2 105 cciss3 108 cciss4 109 cciss5 110 cciss6 111 cciss7 Minor numbers: b7 b6 b5 b4 b3 b2 b1 b0 |----+----| |----+----| | | | +-------- Partition ID (0=wholedev, 1-15 partition) | +-------------------- Logical Volume number The device naming scheme is: /dev/cciss/c0d0 Controller 0, disk 0, whole device /dev/cciss/c0d0p1 Controller 0, disk 0, partition 1 /dev/cciss/c0d0p2 Controller 0, disk 0, partition 2 /dev/cciss/c0d0p3 Controller 0, disk 0, partition 3 /dev/cciss/c1d1 Controller 1, disk 1, whole device /dev/cciss/c1d1p1 Controller 1, disk 1, partition 1 /dev/cciss/c1d1p2 Controller 1, disk 1, partition 2 /dev/cciss/c1d1p3 Controller 1, disk 1, partition 3 Files in /proc The files /proc/driver/cciss/cciss[0-9]+ contain information about the configuration of each controller. For example: $ cd /proc/driver/cciss $ ls -l total 0 -rw-r--r-- 1 root root 0 2010-09-10 10:38 cciss0 -rw-r--r-- 1 root root 0 2010-09-10 10:38 cciss1 -rw-r--r-- 1 root root 0 2010-09-10 10:38 cciss2 $ cat cciss2 cciss2: HP Smart Array P800 Controller Board ID: 0x3223103c Firmware Version: 7.14 IRQ: 16 Logical drives: 1 Current Q depth: 0 Current # commands on controller: 0 Max Q depth since init: 1 Max # commands on controller since init: 2 Max SG entries since init: 32 Sequential access devices: 0 cciss/c2d0: 36.38GB RAID 0 Files in /sys /sys/bus/pci/devices/<dev>/ccissX/cXdY/model Displays the SCSI INQUIRY page 0 model for logical drive Y of controller X. /sys/bus/pci/devices/<dev>/ccissX/cXdY/rev Displays the SCSI INQUIRY page 0 revision for logical drive Y of controller X. /sys/bus/pci/devices/<dev>/ccissX/cXdY/unique_id Displays the SCSI INQUIRY page 83 serial number for logical drive Y of controller X. /sys/bus/pci/devices/<dev>/ccissX/cXdY/vendor Displays the SCSI INQUIRY page 0 vendor for logical drive Y of controller X. /sys/bus/pci/devices/<dev>/ccissX/cXdY/block:cciss!cXdY A symbolic link to /sys/block/cciss!cXdY. /sys/bus/pci/devices/<dev>/ccissX/rescan When this file is written to, the driver rescans the controller to discover any new, removed, or modified logical drives. /sys/bus/pci/devices/<dev>/ccissX/resettable A value of 1 displayed in this file indicates that the "reset_devices=1" kernel parameter (used by kdump) is honored by this con- troller. A value of 0 indicates that the "reset_devices=1" kernel parameter will not be honored. Some models of Smart Array are not able to honor this parameter. /sys/bus/pci/devices/<dev>/ccissX/cXdY/lunid Displays the 8-byte LUN ID used to address logical drive Y of controller X. /sys/bus/pci/devices/<dev>/ccissX/cXdY/raid_level Displays the RAID level of logical drive Y of controller X. /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count Displays the usage count (number of opens) of logical drive Y of controller X. SCSI tape drive and medium changer support SCSI sequential access devices and medium changer devices are supported and appropriate device nodes are automatically created (e.g., /dev/st0, /dev/st1, etc.; see st(4) for more details.) You must enable "SCSI tape drive support for Smart Array 5xxx" and "SCSI support" in your kernel configuration to be able to use SCSI tape drives with your Smart Array 5xxx controller. Additionally, note that the driver will not engage the SCSI core at init time. The driver must be directed to dynamically engage the SCSI core via the /proc filesystem entry, which the "block" side of the driver creates as /proc/driver/cciss/cciss* at run time. This is because at driver init time, the SCSI core may not yet be initialized (because the driver is a block driver) and attempting to register it with the SCSI core in such a case would cause a hang. This is best done via an initialization script (typically in /etc/init.d, but could vary depending on distribution). For example: for x in /proc/driver/cciss/cciss[0-9]* do echo "engage scsi" > $x done Once the SCSI core is engaged by the driver, it cannot be disengaged (except by unloading the driver, if it happens to be linked as a mod- ule.) Note also that if no sequential access devices or medium changers are detected, the SCSI core will not be engaged by the action of the above script. Hot plug support for SCSI tape drives Hot plugging of SCSI tape drives is supported, with some caveats. The cciss driver must be informed that changes to the SCSI bus have been made. This may be done via the /proc filesystem. For example: echo "rescan" > /proc/scsi/cciss0/1 This causes the driver to: 1. query the adapter about changes to the physical SCSI buses and/or fibre channel arbitrated loop, and 2. make note of any new or removed sequential access devices or medium changers. The driver will output messages indicating which devices have been added or removed and the controller, bus, target, and lun used to address each device. The driver then notifies the SCSI midlayer of these changes. Note that the naming convention of the /proc filesystem entries contains a number in addition to the driver name (e.g., "cciss0" instead of just "cciss", which you might expect). Note: Only sequential access devices and medium changers are presented as SCSI devices to the SCSI midlayer by the cciss driver. Specifi- cally, physical SCSI disk drives are not presented to the SCSI midlayer. The only disk devices that are presented to the kernel are logi- cal drives that the array controller constructs from regions on the physical drives. The logical drives are presented to the block layer (not to the SCSI midlayer). It is important for the driver to prevent the kernel from accessing the physical drives directly, since these drives are used by the array controller to construct the logical drives. SCSI error handling for tape drives and medium changers The Linux SCSI midlayer provides an error-handling protocol that is initiated whenever a SCSI command fails to complete within a certain amount of time (which can vary depending on the command). The cciss driver participates in this protocol to some extent. The normal pro- tocol is a four-step process: * First, the device is told to abort the command. * If that doesn't work, the device is reset. * If that doesn't work, the SCSI bus is reset. * If that doesn't work, the host bus adapter is reset. The cciss driver is a block driver as well as a SCSI driver and only the tape drives and medium changers are presented to the SCSI mid- layer. Furthermore, unlike more straightforward SCSI drivers, disk I/O continues through the block side during the SCSI error-recovery process. Therefore, the cciss driver implements only the first two of these actions, aborting the command, and resetting the device. Note also that most tape drives will not oblige in aborting commands, and sometimes it appears they will not even obey a reset command, though in most circumstances they will. If the command cannot be aborted and the device cannot be reset, the device will be set offline. In the event that the error-handling code is triggered and a tape drive is successfully reset or the tardy command is successfully aborted, the tape drive may still not allow I/O to continue until some command is issued that positions the tape to a known position. Typically you must rewind the tape (by issuing mt -f /dev/st0 rewind for example) before I/O can proceed again to a tape drive that was reset. SEE ALSO
hpsa(4), cciss_vol_status(8), hpacucli(8), hpacuxe(8) <http://cciss.sf.net>, and Documentation/blockdev/cciss.txt and Documentation/ABI/testing/sysfs-bus-pci-devices-cciss in the Linux kernel source tree COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 CCISS(4)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy