growfs on existing metadevice

From: Robin (storchr_at_xavier.edu)
Date: 06/29/05


Date: Wed, 29 Jun 2005 15:55:40 -0400

I need to increase the size of a file system on a Solaris 9 server. The
filesystem is apparently a metadevice, it shows in /etc/vfstab as:
/dev/md/dsk/d15 /dev/md/rdsk/d15 /opt/inlum ufs 1 yes -

metastat:
d15: Concat/Stripe
Size: 37749760 blocks (18 GB)
Stripe 0:
Device Start Block Dbase Reloc
emcpower0a 0 No No
Stripe 1:
Device Start Block Dbase Reloc
emcpower0e 0 No No

Device Relocation Information:
Device Reloc Device ID
emcpower0a No -
emcpower0e No -
c1t1d0 Yes id1,ssd@w20000004cffb86e8
c1t0d0 Yes id1,ssd@w20000004cffb84fa

The filesystem is also has disks allocated to it on an emc san, shows in
format as:
2. c2t0d0 <DGC-RAID5-0099 cyl 40958 alt 2 hd 256 sec 10>
/pci@8,700000/fibre-channel@3/sd@0,0
3. emcpower0a <DGC-RAID5-0099 cyl 40958 alt 2 hd 256 sec 10>
/pseudo/emcp@0

I'm trying to increase the size of this file system, so I choose #2,
used slice 5 because 5 corresponds to "e" in emcpower0e (don't know if
that matters), allocated the rest of the remaining space (25Gb) to that
slice through format:

5 unassigned wm 20482 - 40957 25.00GB (20476/0/0) 52418560

I really have no background in emc, used disksuite once to mirror
filesystems with metatool, so I am really going into this blindly. I
think what I need to do now is:

newfs the slice I just created above with:
newfs /dev/rdsk/c2t0d0s5 OR maybe this isn't necessary?

Now this is where I really don't know where to go, I need to add this
slice to the metadevice d15, do I do it with metattach, like:
metattach d15 /dev/dsk/c2t0d0s5 ?
and are there other commands I need to do in addition to this like
metainit or metaclear? I'm thinking not.
Can the system be used while I'm doing this?

Once the slice is added to the metadevice, I believe I use growfs like:
growfs - M /opt/inlum /dev/md/rdsk/d15

Is this the correct procedure? Please add any commands I need or
corrections to my shot in the dark procedure. Thanks a lot.



Relevant Pages

  • Re: Grow Filesystems Dynamically
    ... Indeed you can grow the / filesystem without VxVM or SDS. ... -> to have unused space on the disk that contains the / slice AFTER ... if all ok now you can grow the / file system to the size of the ...
    (comp.unix.solaris)
  • Re: Partitioning VERITAS
    ... metadevice, or a volume, whatever you're using. ... You can slice a disk so that half is in one slice and half is in ... allocate space on the disk to different volumes (either located only on ... There's nothing about the filesystem that's important here. ...
    (comp.unix.solaris)
  • SUMMARY: how do I REALLY delete a file?
    ... leaving the rest of the file system intact. ... Wipedrive doesn't seem to be available for Solaris, but might be of interest to ... run this on each filesystem where the files from ... >Solaris' UFS] do not satisfy this assumption." ...
    (SunManagers)
  • Summary: df -k : discrepancy in the % displayed
    ... The standard file system reserves about 10% of the kbytes for efficiency; ... is unavailable to anyone except root. ... If you created your filesystem with default options, ... This 5% or so reservation is probably not worth bothering with on a 1-2GB ...
    (SunManagers)
  • Re: Saving Objectstore to a WinCE OS device
    ... ANY filesystem can be used. ... It should indicate that this particular registry key is deprecated, ... the registry and mount it as the root and you'll be 80% of the way ... I thought when you mentioned File system that you was refering to ...
    (microsoft.public.windowsce.embedded)