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

new HD to resize and make copy production on Solaris 7

Status
Not open for further replies.

news2me

Technical User
May 14, 2001
28
0
0
US
So here's the deal. I have an 18GB HD in production and have a new 18GB drive to partition and then mirror. the slices on my production HD are too small so I need to resize them. ( I am really new to Solaris excuse my lack of knowledge)
So my plan is:

1. Partition new HD with more efficient space management.
(Using same slice order)
2. copy all data original to new (make the new HD bootable)
3. make sure both HD are same except partition size
4. repartion old HD and resize.
5. Mirror drives

Question: Can I do this with minimal downtime for Server?

Here are the commands I have, I am missing some but don't know what.

go through the format with new disk installed. leaving production in place. partition new disk,
newfs /dev/rdsk/c?t?d?s? for all, then do I have to mount each slice when I do a
ufsdump 0f - /dev/rdsk/... | usf restore rf -
after this I am lost. My main concern is that I create the new disk to be an exact copy of the original (except partition size)

Thanks!
 
You also need to install the bootblocks on the new drive by running 'installboot', see the manpage for details on the command. After that, you can shutdown to the prom level, change the boot device to the new disk, then boot the system. If everything goes well, you can remove the original boot disk at your convenient.

Hope this helps.
 
Well, you might run into problems. I not sure if ufs restore copies everything back the same way...permissions etc. It might assign permissions to root. Here the way I would do it.
Partition
newfs /dev/rdsk/etc
tar the old file need to move
cp file to new disk or slice
untar to new disk or slice
mount the new slice and make it any file directory you want.
You are then good to go.
I know this works
Best of luck.
 
tar a whole partition?????? not sure if I understand how you are going about tarring a complete dir and everything underneath it?
 
From the root of the partitian:
find . -depth -print | cpio -mvdp /dev/dsk/c?t?d?s?
will copy complete directory structure with permissions and ownership etc.
 
if I change the partition sizes on the new HD will this effect anything?
 
No,the restoration will not be affected by the partition sizes as long as the partitions are big enough to hold the filesystem data.But if u are going to decrease the size of the filesystem then do so only if u are complete sure that the filesystem will remain static or will not grow with time.
 
when I partition the HD and then want to then newfs /dev/... do I need to mount the partition that I want to create the new fs on? or?
the command ? newfs /dev/rdsk/c0t8d0s?
 
Hi,
the answer is no...how will u mount when there is no filesytem...u first have to make a fs on that partition using newfs and then u mount that partition on a mount point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top