Help to Grow the Size of volume


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help to Grow the Size of volume
# 1  
Old 08-30-2010
Help to Grow the Size of volume

I have a 146Gb drive and want to grow the size from 12G to the max available left. I think 20G is being used so I want to max out from 12 G to 126G. Is this possible? Can you help with the command.

Code:
root@WRPDWI6k-BU # df -h                               
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0       12G    11G   937M    93%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   5.5G   1.5M   5.5G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/SUNW,Netra-T5220/lib/libc_psr/libc_psr_hwcap2.so.1
                        12G    11G   937M    93%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Netra-T5220/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                        12G    11G   937M    93%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   5.5G    40K   5.5G     1%    /tmp
swap                   5.5G    48K   5.5G     1%    /var/run
WRPDWI6k-BU:/nortel/backup/cnm/
                        12G    11G   937M    93%    /backup/cremote/brr


Last edited by Scott; 08-30-2010 at 10:08 AM.. Reason: Please use code tags
# 2  
Old 08-30-2010
To check how much you have etc. you should issue a vgdisplay and lvdisplay. Your VG will be the whole size of the PV ie. your disk. So the vgdisplay should show a lot of free units.
To actually increase the size of a FS you will have to use something like resize2fs for ext2/3. For ReiserFS you will have to use resize_reiserfs

Afaik you have to umount the FS you want to resize. Not sure if this is the case for all implementations of LVM2 on Linux but I think it will tell you when just fire off a resize 1st.

There are also graphical tools available to handle your LVM, for example gparted.
# 3  
Old 08-30-2010
Quote:
Originally Posted by zaxxon
To check how much you have etc. you should issue a vgdisplay and lvdisplay. Your VG will be the whole size of the PV ie. your disk. So the vgdisplay should show a lot of free units.
To actually increase the size of a FS you will have to use something like resize2fs for ext2/3. For ReiserFS you will have to use resize_reiserfs

Afaik you have to umount the FS you want to resize. Not sure if this is the case for all implementations of LVM2 on Linux but I think it will tell you when just fire off a resize 1st.

There are also graphical tools available to handle your LVM, for example gparted.

This looks like a Solaris system so these commands don't apply. I think your options are very limited because your not using using SVM and everything is in the root file system. The easiest thing to do is allocate space from a free slice and create a new file system. This may or may not meet your needs. Converting to SVM would give you the most flexability. In a nut shell: convert the root slice and then attach the slice with the remaining free slice, then growfs. Personally I don't like everything in the root file system though.
This User Gave Thanks to frank_rizzo For This Post:
# 4  
Old 08-31-2010
Quote:
Originally Posted by frank_rizzo
This looks like a Solaris system...
You absolutely have a point there Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

2540 volume expand and solaris zfs grow

Hello I hope everyone is having a good day! Situation: 2540 with 3.6TB of usable space volume A is 2.6TB volume B was 1TB Volume A is mounted via a single lun on a solaris server and is running out of space. Volume B was used on another server but is no longer, I deleted the volume in... (7 Replies)
Discussion started by: Metasin
7 Replies

2. Solaris

Grow / expand a ZFS volume

Hi, I need to expand a ZFS volume from 500GB to 800GB. I'd like to ask your help to confirm the following procedure: Can I do it on the fly without bothering the users working on this volume? Thank you in advance! (6 Replies)
Discussion started by: aixlover
6 Replies

3. HP-UX

Increase Size of a Volume Group

Hi I have hp-ux 10.20 I have have my operating system VG of 7 GB in a 36Gb disk. So I have like 29GB of unused disk space. There is any way to increase my VG size, or to add another VG in the same disk so I can use all the disk space? Another question, what is the maximun size that a VG can ... (10 Replies)
Discussion started by: pmoren
10 Replies

4. AIX

Volume Group - PP Size

Hi Friends- We know that the Max PP size in a Normal VG and Big VG is 1 GB and in case of scalable VG it is 128 G. My Questions: 1) What is the min PP size allowed for Normal VG, Big VG and Scalable VG? 2) Why is the max PP Size in Normal and Big VG is 1 G and 128 G in... (1 Reply)
Discussion started by: deshaipet
1 Replies

5. SuSE

grow /var size how

Hi all, I am using SLES 9 and have following partitions mounted I would like to make /var 10G atleast. fdisk -l This system is doing RAID5(HW). Can someone help me with this issue? Thanks (4 Replies)
Discussion started by: upengan78
4 Replies

6. Solaris

How can i grow Raid 5 volume in SVM..?

Hello experts.. How can i grow Raid 5 volume in SVM? Thanks in advance.. (2 Replies)
Discussion started by: younus_syed
2 Replies

7. AIX

Volume Group Size

Hello, Can somebody please help. I'm able to view volume groups by using the command "lsvg", how can I view what space is available to that particular volume group Many Thanks (3 Replies)
Discussion started by: ugxd14
3 Replies

8. Solaris

How to reduce the size of a logical volume in solaris 9

Hi, I have the following problem. I just have a new machine with mirroring. The logical volume for /opt is dimensionned to 75 GB which is to much. I want a volume of 10 GB. How can I reduce the size ? I tried to reduce the size of the slice from 75 GB to 10 GB, but the size of the logical volume... (6 Replies)
Discussion started by: aribault
6 Replies

9. UNIX for Dummies Questions & Answers

tar file size (volume) limiting

Hi I am trying to create tar files of a whole bunch of files and want to limit them to 50Mb each. I have tried using the -k option but cannot get it to work. Has anyone out there had success creating these? Cheers Ian (1 Reply)
Discussion started by: bigjeff
1 Replies

10. UNIX for Advanced & Expert Users

How to check size of Volume Group

Did anyone knows how to check size/usage of a Volume Group in AIX 4.3.3? (4 Replies)
Discussion started by: s_aamir
4 Replies
Login or Register to Ask a Question