Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grown file systems

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!I would appreciate if you could help me with the following problem.I just install Solaris 8 and during the installation I define the size of the file systems (root,usr,otp etc). I finished my installation and I try to install iplanet. BUT... now I need more size in /opt and /usr file systems for iplanet installation. I add an additional HD in order to find a way to grow the specific file system wihtout lose any data or format and reinstall Solaris. Can anyone help me to grow the file systems without service affection? Either command line either through software program...
Thanks in advance
 
Have you tried the "format" command? (root access only)
 
If you need to move /opt & /usr to the new disk, then here's how I'd do it ...

- Use format on the new disk to create the two new 'slices' and then newfs to make them into filesystems.
- Re-boot into single-user mode
- Make sure /opt & /usr are mounted
- Mount the new /opt filesystem on (for example) /mnt
- cd /opt
- find . -print | cpio -pdvmu /mnt
- umount /mnt
- Mount the new /usr filesystem on (for example) /mnt
- cd /usr
- find . -print | cpio -pdvmu /mnt
- umount /mnt /opt /usr
- Edit /etc/vfstab and alter the entries for /opt & /usr to point to the new filesystems.
- mount /opt /usr and check all is OK.

Done :)
One by one, the penguins steal my sanity. X-)

 
Moving the FS's in the second disk can I define larger space for them?
Can I keep them in the first disk as it is and point them some slices of the second disk in order to expand their size without lose data, or the FS should be in continuous cylinders?
Do you know if I can move them using DiskSuite and stripping and if yes how that could be achieved (are any restrictions or prerequestes). I'm quite new in this section so any help is more than welcome.
 
> Moving the FS's in the second disk can I define larger space for them?

Yup - it's up to you how you split the new disk up - you could create 2 slices with 50% of the total space each, or split it some other way (25/75, 15/85, 33/77 etc). Or even not use all the space, saving some for future requirements.

> Can I keep them in the first disk as it is and point them some slices of the second disk in order to expand their size without lose data, or the FS should be in continuous cylinders?

Only if you're using something like Disksuite (oh, guess you are ;-) - see below!)

> Do you know if I can move them using DiskSuite and stripping and if yes how that could be achieved (are any restrictions or prerequestes). I'm quite new in this section so any help is more than welcome.

Disksuite will allow you to add more space to an existing filesystem, assuming it's already a Metadevice. The only really tricky one is the root (/) filesystem.

If /opt & /usr aren't already on metadevices, then you'll need to do something similar to the process I outlined above to move them :-( One by one, the penguins steal my sanity. X-)

 
Thanks,I created a META DB REPLICA with 2 slices of the second disk, as disksuite required. Now how can I assign each slice in opt and usr FS accordingly?
 
Use metattach to grow a metadevice

(eg metattach d8 /dev/dsk/c0t1d0s2)

and then growfs

(eg growfs -M /export /dev/md/rdsk/d8) One by one, the penguins steal my sanity. X-)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top