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

18Gb SCSI drive partially used

Status
Not open for further replies.

d3funct

MIS
Jul 13, 2000
313
US
Hi all,

I have a machine on which /var is using 9Gb of an 18Gb drive. I want to use the rest of the drive for /vol00. Is there a way I can make the filesystem without losing the information on /var. When I type "newfs -v /dev/rdsk/c0t8d0s3" it returns "newfs:/dev/rdsk/c0t8d0s3 last mounted as /var" "newfs: construct a new file system /dev/rdsk/c0t8d0s3: (y/n)?"
I have not created the new filesystem because I don't want to lose /var. I am new to creating filesystems on a Sun machine, but have done it many times using IBM's LVM and could create slices from disk live. I'd really rather not have to re-slice this disk and have to rebuild /var.
Thanks for any and all help/suggestions.
Jon Zimmer
jon.zimmer@pf.net
The software required `Windows 95 or better', so I installed Linux.

 
Hi,
The best thing is take a complete backup.
Then create a new slice using then format command.
After that create a file system in new slice(/vo100)
If any thing happens to your old partition(/var) restore
the /var file system from backup.
The commands you may have to use are
format, newfs, fsck.

Some other methods are also available for your Objective.

Suresh.
 
no, you don't really need to do that ... if the whole disk is readable by solaris.

if you've formatted the whole disk to solaris, and only given a partition of 9Gb to /var it is easy enough to create a new partition and then mount it as /vol00

it is also possible to create a new slice on the device (same as DOS partitions) and start from scratch there ...

you'll need to use format (leading to fdisk, and partition) to access the disks ...


 
After you use the format command to create a new slice on the disk, you will need to run the newfs comman on the new slice you created. This will create the lost+found directory. You will also have to create a mount point with the mkdir command

Next if you want to mount this file system at boot time you will have to add and entry to your /etc/vfstab file to mount at boot time otherwise you will have to manually mount the file system.
 
Thanks for the answers, I'll be giving it a try next week. d3funct
borg@pcgeek.net
The software required `Windows 95 or better', so I installed Linux.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top