Visit Our UNIX and Linux User Community


Resizing a disk


 
Thread Tools Search this Thread
Operating Systems Solaris Resizing a disk
# 1  
Old 11-16-2010
Resizing a disk

I'm used to using AIX but a new box running Solaris I need a little help with.

The disk are presented from a SAN, the disk needing to change is presented as 148GBs drive which was allocated to a file system as the same. I need to change that without losing any data. I know I can change the disk being presented at the SAN but how do I make Solaris recognize the change and use in the file system?

Current disk 148GB with a file system of 148GBs.
Need to change disk to be 300GBs and file system to reflect 300GBs.

Regards,
Ken
# 2  
Old 11-17-2010
If you are using veritas as the volume manager, there should be some information in the manuals about that. I seem to recall a growfs command, but alas we not longer have our Solaris servers. I hope that this gives you something to follow up on.

Failing that, could you 'borrow' a disk from the SAN, move you data, drop & re-create the filesystem and then move your data back to realse the borrowed disk? Not the best, I'm sure, especially with a running system, but .......




Robin
Liverpool/Blackburn
UK
# 3  
Old 11-17-2010
Actually, growfs is a native Solaris command that can be used to grow standard UFS file systems. With VXFS, the command would be vxresize.
This User Gave Thanks to jlliagre For This Post:
# 4  
Old 11-18-2010
Quote:
Originally Posted by ltlawnman
ICurrent disk 148GB with a file system of 148GBs.
Need to change disk to be 300GBs and file system to reflect 300GBs.
Ask your SAN admin to present another 300GB LUN and copy the contents of the 148GB LUN with cpio. Then you can give the 148GB LUN back to the SAN Admin.

Here's the cpio command (from the man page) I have used in the past to move large amounts of files/data from one location to another:
Code:
example% find . -depth -print | cpio -pdlmv newdir

HTH
# 5  
Old 11-18-2010
What software are you using for volume management?
# 6  
Old 11-18-2010
Quote:
Originally Posted by bluescreen
Ask your SAN admin to present another 300GB LUN and copy the contents of the 148GB LUN with cpio. Then you can give the 148GB LUN back to the SAN Admin.[/CODE]HTH
Why not growing the file system in place instead of this less efficient method ? (outside creating a backup first which is obviously a recommended practice).
# 7  
Old 11-22-2010
Quote:
Originally Posted by jlliagre
Why not growing the file system in place instead of this less efficient method ? (outside creating a backup first which is obviously a recommended practice).
Not wanting to start a flame war Smilie but the original post stated that the SAN size presented was 100% used. In that case I would not use use "growfs" to extend the fs past the end of the LUN. This solution was presented to assist with the problem presented.

Previous Thread | Next Thread
Test Your Knowledge in Computers #864
Difficulty: Medium
In 2019, the UNIX.com UserCP was rewritten in Vue.js by Neo.
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

Resizing root virtual disk on the CentOS

Hello, Can someone suggest me what I missing, I re-sized a root virtual disk to 30GB on the CentOS VM. After re-sizing the disk, I booted the OS and ran fdisk -list command I was able view the size of the disk as 30GB. Paritions in the vm before I resize are: /boot - Primary parition /... (1 Reply)
Discussion started by: bobby320
1 Replies

2. UNIX for Dummies Questions & Answers

how to go about resizing the virtual disk?

Hi guys , We are running machines in virtual environment. As a part of virtual solution we have a disk created in form of files on host machine. The problem is we are facing space crunch and need to re size the harddisk files of virtual machines. There a catch the virtual machines are... (0 Replies)
Discussion started by: pinga123
0 Replies

3. Solaris

Hard disk resizing Solaris

Dear All, I have a task of resizing the Solaris Partitions. This server contains SVM. Kindly let me know the steps in resizing the partitions and precautions. Regards Rj (3 Replies)
Discussion started by: jegaraman
3 Replies

4. HP-UX

Some doubts about resizing fs's in HP-UX

Hello, I'm new to HP-UX and I'm not sure about some concepts related to resizing fs's under this OS. First of all I'm only asking about resizing ONLINE, it means, without having to umount the fs nor rebooting, etc. Q1. I've read that in order to resize a fs online there are 2 requirements:... (3 Replies)
Discussion started by: asanchez
3 Replies

5. Solaris

Parition Resizing

Is there a way to take space from the /opt slice (/dev/dsk/c1t0d0s5) and then put it in the /var (/dev/dsk/c1t0d0s1)? In theory, I should be able to ufsdump /opt and /var to another drive. Use disk label to resize those two slices (ex. take 10G from opt and add to /var) and then newfs and dump back... (1 Reply)
Discussion started by: adelsin
1 Replies

6. Filesystems, Disks and Memory

Help with resizing partitions

Hi First post :o I have recently used Acronis (Backup software for data backup and disaster recovery in Windows and Linux - Acronis) to create identical systems that I need to build. Everything works OK, but one of the machine has a bigger harddisk (250G) than the one I used to create the... (2 Replies)
Discussion started by: forte712
2 Replies

7. AIX

Resizing VG with mirror

Dear Friends, I would like to know if there is any chance to expand a Volume Group, If this VG have a mirror. If there is any chance to do this what would be the safer way to avoid lost any data. Sorry about my English.:D Thanks a lot. (1 Reply)
Discussion started by: chrispaz
1 Replies

8. UNIX for Dummies Questions & Answers

Resizing file

is there anything such as "resizing file for optimal disk usage" if so, whats it about? (4 Replies)
Discussion started by: TRUEST
4 Replies

9. UNIX for Advanced & Expert Users

filesystems resizing

I want to resize my filesystem partitions. Reason is that I have 11GB of disk space unused by Unix which divvy reveals. Is there a way I could resize my filesystems without doing a reinstallation. The secondary problem is that the boot image is too large for a diskette (5MB). I'm running SCO... (10 Replies)
Discussion started by: sshokunbi
10 Replies

Featured Tech Videos