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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disk Management with Solaris Volume Manager

Status
Not open for further replies.
Apr 13, 2004
316
US
I am using Solaris Volume Manager on Solaris 9.

I am not using soft partitions.

This is the partition table for c1t0d0:
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 1452 - 24596 31.88GB (23145/0/0) 66865905
1 swap wu 0 - 1451 2.00GB (1452/0/0) 4194828
2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 24597 - 24619 32.44MB (23/0/0) 66447

This is the partition table for c1t1d0:
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 1452 - 24596 31.88GB (23145/0/0) 66865905
1 swap wu 0 - 1451 2.00GB (1452/0/0) 4194828
2 backup wm 0 - 24619 33.92GB (24620/0/0) 71127180
3 unassigned wu 0 0 (0/0/0) 0
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wm 24597 - 24619 32.44MB (23/0/0) 66447

This is a metastat –p :
d20 -m d21 d22 1
d21 1 1 c1t0d0s1
d22 1 1 c1t1d0s1
d10 -m d11 d12 1
d11 1 1 c1t0d0s0
d12 1 1 c1t1d0s0

This is a df –h :
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 31G 6.5G 25G 22% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 4.7G 104K 4.7G 1% /var/run
swap 5.1G 351M 4.7G 7% /tmp

This is my /etc/vfstab:
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d20 - - swap - no -
/dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no logging
swap - /tmp tmpfs - yes -

Now my question is what if I want to create a new filesystem that is going to be called archives that is going to be under “/”.

In AIX I would do a mklv and create a new logical volume in the rootvg and then a crfs to create the filesystem on the logical volume.

How do I do this in Solaris 9 with the SVM? I am still trying to grasp this partition concept.

Will you describe to me also how you manage your filesystems using the SVM so that I can get a working perspective of how others use the Solaris Volume Manager to manage their disks?

Thanks!
 
easy way:
you have setup the root FS with ~32GB and used almost all the diskspace for this FS; you can create a subdir with 'mkdir /archives', data is stored in the "/" - root Filesystem
takes about 2 seconds... ;)

complex way:
as i wrote above: you used nearly all diskspace for "/", you can break this into several filesystems, eg.
slice mountpoint/tag size
s0 / 10G
s1 "swap" 2G
s2 "backup" all disk (by convention)
s3 /archive 20G (the rest)
s7 "metadb" 30MB

to do sth. like that you have to disable SVM, backup the system, reconfigure the disks, restore the filesystem and setup SVM again (or setup again, depending on what is faster); you can't change the OS Filesystems such as /(if separate FS: /var, /opt) on the fly, any other FS is no problem. When you have restored the Filesystem you create another volume, ether in md.tab or on command line
metainit d31 1 1 c1t0d0s3
metainit d32 1 1 c1t1d0s3
metainit d30 -m d31
metattach d30 d32
newfs /dev/md/rdsk/d30
vi /etc/vfstab -> add d30 to be mounted on /archives
mount /archives
takes about 5-6h :-((((((

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top