metadb/newfs on disc: If vold running = Device busy/ If vold not running = No such device or address.

From: LOEWENTHAL Simon (sloewenthal_at_gemini.edu)
Date: 08/31/04

  • Next message: John Dunn: "Upgrade to Solaris 9"
    To: "Sun Mangers" <sunmanagers@sunmanagers.org>
    Date: Mon, 30 Aug 2004 18:25:47 -0400
    
    

    Dear all,

    I'm trying to metadb a slice to a new statedatabase. As per the table below
    the slice is 9.94Mb. Machine is Solaris 9.

    Current partition table (original):
    Total disk cylinders available: 14087 + 2 (reserved cylinders)

    Part Tag Flag Cylinders Size Blocks
      0 root wm 105 - 457 3.43GB (353/0/0) 7184256
      1 swap wu 0 - 103 1.01GB (104/0/0) 2116608
      2 backup wm 0 - 14086 136.71GB (14087/0/0) 286698624
      3 var wm 459 - 473 149.06MB (15/0/0) 305280
      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 14086 - 14086 9.94MB (1/0/0) 20352

    I next used metadb to create the first state dB:

    [root@test1]root$ metadb -a -f /dev/rdsk/c0t0d0s7
    metadb: test1: /dev/dsk/c0t0d0s7: No such device or address

    OK, Odd. So I tried to do a newfs on the partition:
    [root@test1]root$ newfs /dev/rdsk/c0t0d0s7
    /dev/rdsk/c0t0d0s7: Device busy

    An fuser shows me that vold pid is using that partition (Que?) so I kill
    vold.

    [root@test1]root$ /etc/init.d/volmgt stop
    [root@test1]root$ !newfs
    newfs /dev/rdsk/c0t0d0s7
    /dev/rdsk/c0t0d0s7: No such device or address
    [root@test1]root$ !metadb
    metadb -a -f /dev/rdsk/c0t0d0s7
    metadb: test1: /dev/dsk/c0t0d0s7: No such device or address

    I reboot just to check its the same, and it is. Any clues?

    Thanks to everyone who replied to the SMC / mirroring / extents question.
    Rdgs/Atentamente,
    Simon.

    ---
    Simon Loewenthal
    Gemini Observatory
    Information Systems Group
    Video 139.229.33.88
    Voice +56 51 205610
    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.745 / Virus Database: 497 - Release Date: 27/08/2004
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers
    

  • Next message: John Dunn: "Upgrade to Solaris 9"

    Relevant Pages

    • Re: fstab
      ... > looks to me like a valid entry. ... make at least one partition on that slice. ... parameters on the newfs command, but usually just the bare newfs ... I think you can talk to it as the whole slice without a partition ...
      (freebsd-questions)
    • Re: Sun Vol. Manager... partitioning
      ... you only need one slice for the metadb. ... Just run format on the disk, select "partition", then a free partition ... Then "label" the disk and you are done. ...
      (comp.unix.solaris)
    • summery, Sol. 9 SMC - Creating extends and mirroring the root harddisc
      ... I thought that it was strange that vold had control of the device, ... The slice is 9.94Mb in size. ... changed slice 7 to 70mb and ran the metadb command again, ... well as a cdrom may not have any space for the partition 7. ...
      (SunManagers)
    • Re: Baisc DiskSuite Question
      ... > Slice and newfs c0t1d0 with an additional metadb slice of ... By default, each copy of the MetaDB, as installed by the metadb command, ... on Solaris 8 and lower. ...
      (comp.sys.sun.admin)
    • Migrate /usr (ufs) to different partition (ufs2) on different slice
      ... Is it possible for me, in one way or another, to newfs a ufs2 partition from a differently partitioned slice? ... The aforementioned shared slices used to belong to my 4_Stable Partition that I had initially installed as the main o/s. ... I will still keep my root partition intact on slice ad0s2e, and I was hoping that there was some way I could painlessly ...
      (freebsd-questions)