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!

add file system to an existing zone

Status
Not open for further replies.

nyck

Technical User
Mar 10, 2004
447
GB
Hello,

I have just used the following to add a new file system to one of my zones:-

global# newfs /dev/rdsk/c1t0d0s0
global# zonecfg -z my-zone
zonecfg:my-zone> add fs
zonecfg:my-zone:fs> set dir=/usr/mystuff
zonecfg:my-zone:fs> set special=/dev/dsk/c1t0d0s0
zonecfg:my-zone:fs> set raw=/dev/rdsk/c1t0d0s0
zonecfg:my-zone:fs> set type=ufs
zonecfg:my-zone:fs> end

How can I make this appear in my zone without having to reboot the zone?
 
The devfsadm command should do the trick.


_______
Linnorm
 
Your zone won't recognize the new configuration until it's reread.
 
try:

mount -F ufs /dev/dsk/c1t0d0s0 /zones/my-zone/root/usr/mystuff

my-zone filesystem is just an alternate root off the global zone. Make sure directory /zones/my-zone/root/usr/mystuff exists first.
 
I should have mentioned to mount it in the root zone. You probably figured that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top