Please help Disk Suite on Solaris 8 FS full!!!


 
Thread Tools Search this Thread
Operating Systems Solaris Please help Disk Suite on Solaris 8 FS full!!!
# 1  
Old 04-01-2008
Please help Disk Suite on Solaris 8 FS full!!!

I am new to Solaris so please bear with me. I have spent enough time searching to get somewhat of a grip here but I am not sure what to do next. I am trying to grow a file system on a Solaris 8 server.

B_root@server:>df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 30257446 21037051 8917821 71% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/md/dsk/d5 20174761 6267861 13705153 32% /var
swap 8554064 24 8554040 1% /var/run
swap 8603824 49784 8554040 1% /tmp
/dev/md/dsk/d30 136261305 80675586 54223106 60% /oracle01
/dev/md/dsk/d7 11094316 10768394 214979 99% /server01

I need to make /server01 bigger by at least 2 GB....

When I look at metastat I see d7 has submirrors d17 and d27 and they are on 2 separate physical disks (c2t0d0s7, c2t1d0s7)


B_root@server:>metastat -p
d0 -m d10 d20 1
d10 1 1 c2t0d0s0
d20 1 1 c2t1d0s0
d1 -m d11 d21 1
d11 1 1 c2t0d0s1
d21 1 1 c2t1d0s1
d5 -m d15 d25 1
d15 1 1 c2t0d0s5
d25 1 1 c2t1d0s5
d7 -m d17 d27 1
d17 1 1 c2t0d0s7
d27 1 1 c2t1d0s7

d30 4 1 c1t0d0s0 \
1 c1t1d0s0 \
1 c1t2d0s0 \
1 c1t3d0s0

Here are is how they are partitioned:

c2t0d0s7
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 6037 29.30GB (6038/0/0) 61442688
1 swap wu 6038 - 7686 8.00GB (1649/0/0) 16780224
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 7687 - 7727 203.72MB (41/0/0) 417216
4 unassigned wm 0 0 (0/0/0) 0
5 var wm 7728 - 11753 19.54GB (4026/0/0) 40968576
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 11754 - 13967 10.74GB (2214/0/0) 22529664

c2t1d0s7
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 6037 29.30GB (6038/0/0) 61442688
1 swap wu 6038 - 7686 8.00GB (1649/0/0) 16780224
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 7687 - 7727 203.72MB (41/0/0) 417216
4 unassigned wu 0 0 (0/0/0) 0
5 var wm 7728 - 11753 19.54GB (4026/0/0) 40968576
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wm 11754 - 13967 10.74GB (2214/0/0) 22529664

This is all I know. I have no idea what to do now. I have more HDs and I have slots to put them into. But I just don't know what to do from here? Do I need to add (physically) more disks? Or can I change the partition table of the existing ones to make more room that way? Any help is appreciated I feel like I am drowning here....

Last edited by NewSolarisAdmin; 04-01-2008 at 02:15 PM..
# 2  
Old 04-01-2008
if you can add more disks, just do that and copy the data. or has it to be done online with no downtime?
# 3  
Old 04-01-2008
Quote:
Originally Posted by DukeNuke2
if you can add more disks, just do that and copy the data. or has it to be done online with no downtime?
It can go down. First of all thank you so much for responding I am tired of being alone in the dark...

As I said I can take the system down if need be. I just don't know what to do to add a disk?

I mean I know shut it down, put in the disk and do a "reconfigure" reboot. Then the system will see the new disks right?

Do I have to use the "disksuite" to add it and make it usable?

Sorry for the stupidity, but I am new to this OS and the Solstace Disksuite.

Thank you again for your help!
# 4  
Old 04-01-2008
you don't have to use disksuite but it's better to build a mirror for higher availabilty! after building the new mirror just mount it to /mnt and copy all data (maybe better use a "ufsdump" to copy the data) unmount from /mnt and edit /etc/vfstab with the new device. maybe you need to do it in "single user mode" so no application uses the data on you disk!

good luck...
# 5  
Old 04-01-2008
you can do as dukenuke suggest which is a good safety method in which you create another bigger filesystem then ufsdump or tar the data from old filesystem to new filesystem.

cd /DATA
tar cvfp - * | (cd /mnt;tar xvfp -)

anything goes wrong later you still have the old filesystem to fall back upon. The not so pleasant thing abt this is you may need a long down time depending how much data you have to copy, at least few hours looking at the size of your current filesystem.


or you can try growfs

example from man pages.

d80 already contains 2 submirrors d9 and d10, add additional disk c0t2 and c0t3 to d9 and d10

# metattach d9 c0t2d0s5
# metattach d10 c0t3d0s5
# growfs -M /files /dev/md/rdsk/d80

check the man pages on how to do growfs, I think need to schedule some downtime to umount FS before you can do do a growfs. Make sure adequate backups are done prior to doing this.

I think man pages says you can do growfs online but a little extra 1-2hr of caution in a downtime is better than spending many sleepless hours trying to resolve a mistake if something went bad Smilie
# 6  
Old 04-02-2008
So grow fs may work, I didn't think it would? Thanks I will look at that posibility again.
# 7  
Old 04-02-2008
OK here is where I am:

I get onsite today finaly and I find the disks need to be installed into a D2 SCSI array...

It is a 280r server with a D2 array hanging off it.

The file system they need bigger is on internal disks using SDS as management. it is mirrored (d7) with 2 subs (d17, d27), one slice on each internal disk they use slice 7 hence the naming convention.

The array has 4 HDs in it and they are recognized by metastat to have a concatenated stripe running across all of them called d30 that has about 136 G all together.

The array will hold up to 12 drives. So 8 more HDs can be added.

I have enough 18.2 G sun HDs to fill it.

This is what I want to do to start:

1. add 4 drives to the array.

2. format them to put all space available on slice 6 of the drives (relatively 18 G per HD)

3. use SDS to make a new metadevice, call it d6.

3. make sub mirrors ... ... .. . This is where I get lost.

How do I make a mirrored metadevice using more than 2 drives?

I know I can do it like before and have 2x the redundancy/speed or whatever but I need to end up with a 36 G mirrored file system with 2 submirriors, NOT an 18 G mirrored twice over file system with 4 submirrors.....

Can someone please help me with the steps from here? The HDs will be:
c1t4d0
c1t5d0
c1t6d0
c1t7d0

Any help will be appreciated, thank you in advance.

Last edited by NewSolarisAdmin; 04-02-2008 at 03:47 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solstice Disk Suite

I am doing disk mirroring and this command I entered: metainit d202 1 1 c0t1d0s0 gives me this error "metainit: d202: no such file or directory" The nmd value in /kernel/drv/md.conf is set to 2000. Any ideas what this error means? (3 Replies)
Discussion started by: bluridge
3 Replies

2. Solaris

solaris 8 / disk space almost full

Hi All, My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file. Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?... (7 Replies)
Discussion started by: itik
7 Replies

3. Solaris

Disk Suite issue

Solaris 9 We had a problem server where only root was not mirrored (before my time). When I tried to mirror it, the live root slice bailed with errors at 97% so it couldn't be mirrored. It's a matched pair of boxes (nfs1 and nfs2) and they are interchangeable with regards to the NFS... (0 Replies)
Discussion started by: BOFH
0 Replies

4. UNIX for Dummies Questions & Answers

disk suite to mirror both d0 and d2

I have 2 drives on a sun solaris 8 server that is a live server. I am putting in an additional 2 drives and want to mirror the the first 2. I was thinking of using disksuite but one drive is the root drive with 1 maybe 2 free paritions. The other is only one partition (36G). I was wondering... (2 Replies)
Discussion started by: csgonan
2 Replies

5. Solaris

Mirroring 2 disks with Solstice Disk Suite

hello everybody, I have a system in Solaris 8 with SDS 4.2.1 I need to mirror the system disk which has the following characteristics : * /dev/rdsk/c0t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 133 sectors/track * 27 tracks/cylinder * 3591 sectors/cylinder... (3 Replies)
Discussion started by: aribault
3 Replies

6. Solaris

Solaris Disk Suite

Hi I'm completely new to Solaris Disk Suite. Where can I go and read up about it. I've seen consultants run the meta- commands, but it doesn't make any sense to me. I would like to learn how it works and how to use it. Thanks (1 Reply)
Discussion started by: soliberus
1 Replies

7. UNIX for Dummies Questions & Answers

Size limitations with ufs/disk suite on Solaris 8?

I tried to build a 1.3 TB volume with disk suite, and recieved an error (don't remember the exact verbage, it was very late). It only built a 1 TB volume. newfs completed without error. I rebuilt the volume to be just under 1TB, and all was fine. Is there a limitation with disk suite, or ufs, that... (3 Replies)
Discussion started by: 98_1LE
3 Replies

8. Filesystems, Disks and Memory

Installing DISKS with Solaris Disk Suite

Hi, Ihave a Netra T1405 and would like to add 2 news disk (in mirror with SDS) in order to grow the size of the initial file system. The idea is to mount a new partition in order to setup new products... Could some one tell me the difrents steps to do this or give me links to documents. ... (1 Reply)
Discussion started by: guillaume35
1 Replies

9. UNIX for Dummies Questions & Answers

Disk Suite on Solaris 7

Does anyone know which packages I need to install to run Disk Suite on Solaris 7, or where I can find some documentation? (2 Replies)
Discussion started by: 98_1LE
2 Replies
Login or Register to Ask a Question