Re: Expanding volumes/filesystems under SVM - Solaris 10
- From: Darren Dunham <ddunham@xxxxxxxxxxxxxxxx>
- Date: Thu, 05 Jan 2006 16:48:51 GMT
DBPW <mmcgaa@xxxxxxxxx> wrote:
> I was given a V440 with 4 x 72G disks to play with (and expected to go
> into production ASAP of course). So I mirrored two of the disks for
> system stuff. Didn't really know what to do with the other two 72G
> disks (I not very smart). Actually, I think they are a waste of money,
> as I'm already attached to the SAN for the heavy hogs (developers and
> DB's).
> Now I want to expand the / volume, since opt is already filling up its
> 10G.
> Does anyone know any easy way to do this? I'm used to good ol'
> Veritas.
How would you do this in VxVM? It's not much different, just a bit more
manual.
> The following does not make sense to me. My notes are in ( ).
> "Existing volumes can be enlarged by adding additional slices. (I only
> have a few slices left, why use one to expand a existing slice?)
This is the default method for general (non boot) volumes. It's easier
to add a new slice because SVM offers no facility for moving data. If
data exists immediately after the one you want to expand, it cannot do
so.
> After
> you grow your volume, you will probably want to grow the file system
> that uses that volume by using the growfs command. Although growing
> file systems does not result in data loss, it's still a good idea to
> back up your file system before attempting configuration changes.
> Volumes can be expanded but cannot be shrunk without destroying the
> volume and creating a new one."
growfs is not supported for the root filesystem while booted from it.
> "You can use concatenated volumes to expand existing file systems
> without needing to reboot your computer.
Only true for non boot-critical filesystems. Root cannot be a
concatenated (or stripe or raid5) volume.
You have several choices.
*) Old school
Format a disk (either one you're not using, or drop one of the mirrors)
to the way you want. ufsdump/ufsrestore data to the new disk into the
locations you want. Put a boot block on there, set the /etc/vfstab,
clear the rootvol in /etc/system and boot from it. After verifying it
works, redo SVM and mirroring.
*) Use the mirrors
Drop one of the mirrors. Repartition the way you want (with all
filesystems being the same or larger as the original). Mirror. Repeat
on original. Now you've got everything in place, but the filesystem
hasn't been enlarged. You can run 'growfs' on the non-root
filesystems. Boot from install media so that the on-disk SVM is found
and filesystems are mounted. Run growfs on the root filesystem.
*) Use Live Upgrade.
You can use LU to copy the system over to one of the unused disks.
Partition it as you want, then set up the environment. When done, it's
a quick reboot into the new environment.
Having the extra 2 disks is really cool with LU. You can keep the
system mirrored *and* have a separate BE. Also, you can have replicas
on more than 2 disks.
--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.
- Follow-Ups:
- References:
- Prev by Date: Re: format and df -k not jibing..?
- Next by Date: Re: format and df -k not jibing..?
- Previous by thread: Expanding volumes/filesystems under SVM - Solaris 10
- Next by thread: Re: Expanding volumes/filesystems under SVM - Solaris 10
- Index(es):
Relevant Pages
|
|