Chinaunix首页 | 论坛 | 博客
  • 博客访问: 423393
  • 博文数量: 148
  • 博客积分: 3191
  • 博客等级: 中校
  • 技术积分: 1232
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-11 15:25
文章分类

全部博文(148)

文章存档

2011年(148)

我的朋友

分类: LINUX

2011-08-30 09:19:23

oraclesqlserverDocument逻辑卷删除,创建新的逻辑卷backup

[root@storage-lh mnt]# mount

[root@storage-lh mnt]# umount /mnt/oracle/

[root@storage-lh mnt]# umount /mnt/sqlserver/

[root@storage-lh Document]# umount /mnt/Document/

 

[root@storage-lh mnt]# vi /etc/fstab

/dev/storage/oracle     /mnt/oracle             reiserfs defaults       1 2

/dev/storage/sqlserver  /mnt/sqlserver          reiserfs defaults       1 2

/dev/storage/Document   /mnt/Document           reiserfs defaults       1 2

 

lvremove /dev/mapper/storage-oracle

lvremove /dev/mapper/storage-sqlserver

lvremove /dev/storage/Document

 

[root@storage-lh mnt]# lvcreate -L 1.2T -n backup storage

[root@storage-lh mnt]# mke2fs -j /dev/storage/backup

 

[root@storage-lh mnt]# vi /etc/fstab

/dev/storage/backup     /mnt/backup             reiserfs defaults       1 2

 

[root@storage-lh mnt]# useradd backup

[root@storage-lh mnt]# smbpasswd -a backup

[root@storage-lh mnt]# chown backup:backup /mnt/backup/

 

[root@storage-lh mnt]# vi /etc/samba/smb.conf

[backup]

        comment = backup

        path = /mnt/backup

        valid users =  root, avinliu,glk,backup

        read list =   root,avinliu,glk,backup

        write list = root,avinliu,glk,backup

 

[root@storage-lh mnt]#mount -a

mount: wrong fs type, bad option, bad superblock on /dev/hda5,

or too many mounted file systems

 

[root@storage-lh mnt]#reboot

无法启动

 

文件系统应为ext3

[root@storage-lh mnt]# vi /etc/fstab

/dev/storage/backup     /mnt/backup             ext3 defaults       1 2

阅读(483) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~